Javascript examples for jQuery Method and Property:load
Handle page loaded event
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(window).load(function(){/*from ww w .j a v a 2 s . co m*/ console.log("Page loaded."); }); }); </script> </head> <body> <img src="http://java2s.com/resources/a.png" alt="Pulpit rock" width="304" height="228"> </body> </html>