$(window).bind("load", function() { // code here });