jQuery load() on window object

Description

jQuery load() on window object

View in separate window

<!DOCTYPE html>
<html>
<head>
<script 
 src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
</script>/*from ww  w  .  ja v  a2s  . c o  m*/
<script>
$(document).ready(function(){
  $(window).load(function(){
    document.getElementById("demo").innerHTML = "Page loaded.";
  });
});
</script>
</head>
<body>

<p id="demo"></p>
<img src="image4.png" alt="image4.png" width="100" height="100">

</body>
</html>



PreviousNext

Related