[Javascript] window location hash
Matt Warden
mwarden at gmail.com
Thu Mar 22 13:03:47 CDT 2007
On 3/22/07, Glenn E. Lanier, II <glenn_lanier at netzero.net> wrote:
> Untested, but would
>
> var hashValue = "bottomPage";
> if (hashValue != window.location.hash)
> {
> window.location.hash = hashValue;
> }
It will avoid the bug but probably will not do what is intended by the
hash change in the first place. A slight modification:
if (hashValue == window.location.hash)
{
window.location.hash = new String((new Date().getMilliseconds()));
}
window.location.hash = hashValue;
--
Matt Warden
Cleveland, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the Javascript
mailing list