Javascript examples for Object:Object Method
Create Javascript objects and call its functions
<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>