In a (ugly) javascript I try to test if window.location.replace
exists, before I use it:
if(window.location.replace) window.location.replace(href);
else window.location.href = href;
I remember trying to do something like that a while ago and finding
what you found. Functions are objects,
Hi!
In a (ugly) javascript I try to test if window.location.replace
exists, before I use it:
if(window.location.replace) window.location.replace(href);
else window.location.href = href;
This works well in IE = 5.5, Safari, Netscape and Mozilla. IE 5.0
seems to have a different
Bert,
Am Freitag, 22. April 2005 um 11:10:20 haben Sie geschrieben:
Sending this off-list since it doesn't appear to be standards
related (it's not DOM ECMAscript?)
IMHO it is on topic, because following the standard it should be
possible to test, if a method exists.
Without seeing why you