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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -