Changing window.location in IE 6

window.location and window.location.href will support to all browsers but it will not support to IE6.

For this I have a solution:
Suppose you code is :

window.location = “http://naveenos.com/”;
// Not working???

// Also this does not working??
window.location.href =”http://naveenos.com/”;

Then do this,

setTimeout(function()
{
window.location = “http://naveenos.com/”;
}, 0);


Comments

One response to “Changing window.location in IE 6”

Leave a Reply

Your email address will not be published. Required fields are marked *

*