How do I change the URL without refreshing the page?
I've built a website with CodeIginer and I want to implement AJAX and JQuery in one of my pages. The problem is; when I load the content, the URL doesn't change.
Let's say that I have the URL https://www.edureka.co/controller/function/param
And another URL : https://www.edureka.co/controller/function/param2
How can I change the first URL to the second one when I click a button?
In HTML5 you can change the URL:
window.history.pushState("object or string", "Title", "/new-url");
HTML5 introduced the history.pushState() and history.replaceState() methods, which allow you ...READ MORE
In order to handle a timeout:
var xmlHttp ...READ MORE
Instead of passing the entire object ...READ MORE
This is possible, but you'll have ...READ MORE
First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
This is simple you just need to ...READ MORE
Named routing is another amazing feature of ...READ MORE
This is simple you just need change ...READ MORE
Use the browser history to change ...READ MORE
Already have an account? Sign in.