private the code in IE,but cannot in firfox.