How can i replace window.href="someurlhtml" for firefox and IE support ?
+2
A:
You use the location object:
window.location.href = 'some.html';
Or simply
location.href = 'some.html';
Greg
2009-10-08 11:38:09
A:
You can also do something like this:
document.location.href = "some.html";
or
document.location = "some.html";
jerjer
2009-10-08 12:07:31
document.location was deprecated in favour of window.location back around 1996, when Netscape Navigator 3 was released.
NickFitz
2009-10-08 14:22:58