Is object a function : isFunction « Dojo toolkit « JavaScript DHTML






Is object a function

 

<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>

      var f1 = function() { };
      var f2 = new Function();
      
      alert(dojo.isFunction(f1));
      alert(dojo.isFunction(f2));

    </script>

  </head>

  <body></body>

</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category