[Javascript] window location hash

Guillaume javascript at webdesignofficina.com
Thu Mar 22 09:37:22 CDT 2007


Hi,

I'm experiencing a problem with:

 window.location.hash = "bottomPage";

It's buggy in Safari...

The problem is known as the Safari location.hash reload bug and has been 
documented by Mark "Tarquin" Wilton-Jones... Read below a cut and paste 
describing the problem and the solution 
(http://www.howtocreate.co.uk/safari/locationHashBug.html).
...


      What is going on here?

Setting location.hash to the same value twice in a row causes Safari to 
reload the page. Tested in Safari 1.1-1.2 and equivalent OmniWeb versions.


      What can be done to workaround this bug?

Don't set location.href to the same value twice in a row. If needed, set 
it to an intermediate value in between.

...

Anyone having an idea on how to apply this workaround to the code 
mentioned before.

Thanks.

Guillaume.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070322/a644539f/attachment.htm>


More information about the Javascript mailing list