Create Javascript objects and call its functions - Javascript Object

Javascript examples for Object:Object Method

Description

Create Javascript objects and call its functions

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.4.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/* ww w.jav a 2  s.  c o m*/
mine = {
    start: {
        modeBox: function() {
          console.log();
        }
    }
};
    });

      </script> 
 </head> 
 <body> 
  <div id="askMode" onclick="mine.start.modeBox();">
    My mine 
  </div>  
 </body>
</html>

Related Tutorials