By using:
window.history.pushState("string", "Title", "newUrl");
This is new in HTML 5.
Your url will change to newUrl without reloading the page.
Note: title arg in the method will not change the Title of the html page. This is used to name the page in the browser history, incase u go back and then go forward.
0 comments:
Post a Comment