window.location.href在火狐上不兼容的解决

window.location.href在火狐下不兼容的解决window.open() 是打开新窗口,而window.location.href是在现有窗

window.location.href在火狐下不兼容的解决

window.open() 是打开新窗口,而window.location.href是在现有窗体上打开。

?

写程序的时候用到了window.location.href(“http://www.maoegg.com”);这种形式的事件,在IE下能正常跳转,但是在火狐下却是不行。

?

本来都想换一种别的方式了,在网上一查,用这种方式是IE跟火狐通用的window.location.href=”http://www.maoegg.com”;

留给以后遇到同样问题的同学吧。