Change the URL address without reloading the page
Posted: 08 Jan 2015, 08:28
Is there any way I can modify the URL of the current page without reloading the page?
I only need to change the portion after the domain, when a button is clicked and a new content is added with ajax.
I tryed this code, but it reloads the page:
How can i change the URL without page refresh?
I only need to change the portion after the domain, when a button is clicked and a new content is added with ajax.
I tryed this code, but it reloads the page:
Code: Select all
window.location.href = 'coursesweb.net/page2.htm';