When using $(document).ready(functioon(){alert("Loaded.")}); a pop-up window appears with the words "Downloaded". even before , the page is fully loaded (in other words, it is still loading, like images).
$(document).ready(functioon(){alert("Loaded.")});
Any thoughts?
$(window).on('load', function() { //everything is loaded }); $(window).on('load', function() { //everything is loaded });
$(window).on('load', function() { //everything is loaded });
Try instead .load ().
$(document).load(function () { alert('Loaded'); }
A load event is dispatched to an element when it and all sub-elements have been fully loaded. http://api.jquery.com/load-event/
Using javascript
window.onload = function () { alert("loaded"); }
Here you can find out more about this. https://github.com/codef0rmer/learn.jquery.com/blob/master/content/jquery-basics/document-ready.md