Icon Patrick Gibsonpatrickgibson.com
news and such projects, etc. movies writings hyperlinks contact
news and stuff

Wednesday, October 22, 2008

Changing window.location in IE 6

For some crazy reason, IE 6's crazy Javascript engine doesn't want to take me to a new URL by simply changing the window.location or window.location.href properties:

var newUrl = "http://patrickgibson.com/";
window.location = newUrl;
// This also doesn't work!
// window.location.href = newUrl;

But, the following code which shouldn't make a difference does work!

var newUrl = "http://patrickgibson.com/";
    window.location = newUrl;
}, 0);

Go figure!

Posted at 13:46
« The domready event for Prototype | Back to News and Such | Canon Canoscan on Mac OS X »


Retrix Hosting