Javascript How to check if a Javascript function exists May 29, 2011 Pramod T P Leave a comment <script language=”javascript” type=”text/javascript”> function myFunction() { } if(window.myFunction) { alert(“‘myFunction’ already exists”); } else { alert(“‘myFunction’ does not already exists”); } </script>