Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Edit:</strong> It's been a couple years now, and browsers have evolved.</p> <p>@Luxiyalu's <a href="https://stackoverflow.com/a/23924886/259039">answer</a> is the way to go</p> <p>--<strong>Old Answer</strong>--</p> <p>I too think it is impossible (at this time). But why do you need to change the hash value if you are not going to use it?</p> <p>I believe the main reason why we use the hash value as programmers is to let the user bookmark our pages, or to save a state in the browser history. If you don't want to do any of this, then just save the state in a variable, and work from there.</p> <p>I think that the reason to use a hash is to work with a value that is out of our control. If you don't need it, then it probably means you have everything under your control, so just store the state in a variable and work with it. (I like repeating myself)</p> <p>I hope this helps you out. Maybe there's an easier solution to your problem.</p> <p><strong>UPDATE:</strong> How about this:</p> <ol> <li>Setup a first hash, and make sure it gets saved in the browser history.</li> <li>When a new tab gets selected, do <code>window.history.back(1)</code>, that will make the history go back from your first init hash.</li> <li>Now you set the new hash, therefore the tabbing will only make one entry in the history.</li> </ol> <p>You'll probably have to use some flags, to know if the current entry can be "deleted" by going back, or if you just skip the first step. And to make sure, that your loading method for the "hash" doesn't execute, when you force the <code>history.back</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload