carlos-sanchez
12/12/2013 - 6:52 PM

Document ready

Document ready

$( document ).ready(function() {
  //whatever
});


// Shorthand for $( document ).ready()
$(function() {
  //whatever
});


//window load
$(window).load(function() {
 // executes when complete page is fully loaded, including all frames, objects and images
 alert("window is loaded");
});