$(document).ready(function(event){ ... }) is similar to window.onload = function() { ... }
$(document).ready(function(event){ ... })
window.onload = function() { ... }
$(document).ready(function(){ // things to do when the page has fully loaded });