When the browser finishes downloading all of a web page's files including its scripts and images, the load event occurs.In this example we want to make sure we have loaded the whole page before executing an alert. we do this using: https://raw.githubusercontent.com/finsweet/jqueryCourse/main/jquery%20events/ex38.js?actionable=false
<script>
$(document).ready(function(){
XT1
});
</script>
$(document).ready(function(){
XT1
});
</script>
Copy to clipboard
Live demo
<div id="minidivpage" class="example-live"><div id="popUp" class="pop-up">Gray Area</div></div>
<script>
$(document).ready(function() {
XT1
});
</script>
$(document).ready(function() {
XT1
});
</script>
Copy to clipboard
Press the Run Demo button to execute the scripts above.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.