Javascript examples for DOM Event:onload
Mixing window.onload and jQuery $(function(){})
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> <script type="text/javascript"> $(function () {//from ww w . j a v a 2 s .c om console.log('reday event'); }); this.onload = function () { console.log('load event'); } </script> </head> <body> </body> </html>