Handle page loaded event - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:load

Description

Handle page loaded event

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials