Skip to content Skip to sidebar Skip to footer

Move Backward Through History Skipping The Same Page With Different Query String

When I refresh a page or redirect to the same one using the same url, I can click in a button with 'window.history.back();' code and go back to the previous page. However, If the q

Solution 1:

Use

<ahref="page2.html?x=123"onclick="location.replace(this.href); return false">Next</a>

to go forward while replacing the link in the history array

Post a Comment for "Move Backward Through History Skipping The Same Page With Different Query String"