views:

758

answers:

3

How can i replace window.href="someurlhtml" for firefox and IE support ?

+6  A: 
window.location.href = "someurl";
Warren Young
+2  A: 

You use the location object:

window.location.href = 'some.html';

Or simply

location.href = 'some.html';
Greg
A: 

You can also do something like this:

document.location.href = "some.html";

or

 document.location = "some.html";
jerjer
document.location was deprecated in favour of window.location back around 1996, when Netscape Navigator 3 was released.
NickFitz