W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

Re: Creative (?) solution for redundant links

From: Jim Ley <jim@jibbering.com>
Date: Tue, 12 Mar 2002 15:07:33 -0000
Message-ID: <02e401c1c9d7$a35cbcc0$ca969dc3@emedia.co.uk>
To: "'WAI \(E-mail\)'" <w3c-wai-ig@w3.org>
"Mike Scott" <mscott2@msfw.com>
> Is there an appropriate way to script the changing of location (e.g.
> would window.location be correct?), or is it outside the scope of
> appropriate scripting?


Is safe in that it will not error in any browser I know of, and it will
work in almost all of them.  It won't work in certain NN4's which require
location.href="..." but that won't work in certain scenarios in IE6's
when you'll crash it, location.href would also mean you'd need to check
the location object existed for a couple of obscure browsers.

It's not reliable of course, but then no javascript is and we can't be
relying on javascript at all.

Such things aren't standardised anywhere, but obviously browser agreement
is pretty universal on calling the global object window and having a
location object.

Received on Tuesday, 12 March 2002 10:10:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:07 UTC