Entry
I cannot get a new doc. to load using the location object and any of its properties in IE5.0(SP1).
Dec 11th, 2001 09:42
Andy Frescura, Jean-Bernard Valentaten, Andy frescura
I don't know what you tried, but this little piece of code should work:
function newPage(URLofPage)
{
var newUrl = URLofPage;
if(!newUrl.length = 0) window.location.href = "" + newUrl;
}
HTH,
Jean
Thanks Jean,
The problem I was having was with this piece of code -
<a href="#" onclick="location.href='/test'">Next</a> so I changed it to
<a href="javascript:location.href='/test/'>Next</a> and it worked. I'm
not sure why an onclick would not work for the location object in IE
5.0. If you have any ideas I would appreciate it, so I could satisfy my
curiosity.
Andy