This post was suggested by Sumit Kumar Pradhan. I recently saw many questions like this on Stack Overflow. Let me start explaining, there is already a function in JavaScript to do this special task. The function is window.history.replaceState. It’s a simple function that needs 3 values.
This is actually a HTML5 function that came out on July 2012 (I think). All the latest browsers support the new function except IE 9.
This is actually a HTML5 function that came out on July 2012 (I think). All the latest browsers support the new function except IE 9.
Here is a small example of the usage of window.history.replaceState :
... [READ MORE]