Firefox Fail - After Using Document.write And Update To Location.hash Causes Page Refresh
Here is some HTML (Fiddle):
Solution 1:
Try this code to push the hash state:
if (history.pushState) {
history.pushState(null, null, '#test');
}
else {
location.hash = '#test';
}
but I haven't tested it myself.
Added: Try naming your functions test1() and test2(). This won't fix it necessarily, but it may help to debug/discover what is happening.
Post a Comment for "Firefox Fail - After Using Document.write And Update To Location.hash Causes Page Refresh"