S
stephen.cunliffe
Hi all,
This may sound real strange, but I'm curious what the "official"
answer is.
In my JS, I want to redirect/navigate to a url...
In Mozilla,
document.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera,
etc.
window.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera,
etc.
But.... there are times, in IE6, when...
document.location.href = '{my_url}';
does *NOT* work... and IE just ignores the request...
Now, from all the specs I read, it looks like location.href was only
ever intended to be read-only... but browsers seemed to make it
editable... and in IE6, document.location.href( '{my_url}' ); even
works (sometimes), because MS added this ability because so many were
trying it, finding it not to work, and submitting bugs...
So, 2 questions...
1.) What is the "official" way to set the page location (e.g. to some
other page)
2.) If document.location.href is fine, anyone know why IE sometimes
ignores it, when it is set to a new value?
This may sound real strange, but I'm curious what the "official"
answer is.
In my JS, I want to redirect/navigate to a url...
In Mozilla,
document.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera,
etc.
window.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera,
etc.
But.... there are times, in IE6, when...
document.location.href = '{my_url}';
does *NOT* work... and IE just ignores the request...
Now, from all the specs I read, it looks like location.href was only
ever intended to be read-only... but browsers seemed to make it
editable... and in IE6, document.location.href( '{my_url}' ); even
works (sometimes), because MS added this ability because so many were
trying it, finding it not to work, and submitting bugs...
So, 2 questions...
1.) What is the "official" way to set the page location (e.g. to some
other page)
2.) If document.location.href is fine, anyone know why IE sometimes
ignores it, when it is set to a new value?