1. Browser Emulators including IE 7, IE 6, IE 8, Firefox 2 , Firefox 3, Chrome, Opera and Safari 3
2. Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
3.OverlayComp allows you to overlay a design comp onto a page so that the CSS formatting and layout can be ensured to be pixel-perfect.
Friday, July 24, 2009
Changing window.location in IE 6
You are annoyed by the strange behavior if IE 6 ? I'm sure you are. Let;s take a look to the latest strange thing that i found. For some crazy reason, IE 6's javascript engine doesn't want to redirect me to a new URL by simply changing the window.location or window.location.href properties:
var newUrl = "http://someurl/";
//Those will not work
window.location = newUrl;
window.location.href = newUrl;
But(surprise), the following code which is stupid and shouldn't make a difference do the work!
var newUrl = "http://someurl/";
setTimeout(function()
{
window.location = newUrl;
}, 0);
var newUrl = "http://someurl/";
//Those will not work
window.location = newUrl;
window.location.href = newUrl;
But(surprise), the following code which is stupid and shouldn't make a difference do the work!
var newUrl = "http://someurl/";
setTimeout(function()
{
window.location = newUrl;
}, 0);
Subscribe to:
Posts (Atom)