resize() fires on page load (jQuery, Firefox) -
the alert() in code below fires on page load shouldn't. why it?
jquery(window).bind("load", function() { jquery(window).resize(function() { alert('hi'); }); });
you can simple use
jquery(document).ready(function(){ jquery(window).resize(function() { alert('hi'); }); });
it work me well
Comments
Post a Comment