this is my html
<a href="http://127.1.1.0:8001/gembead/emstones.html?car=36">Car</a>
Basically i want to redirect to this page with parameter but i dont want my page to load. How can i do this. I am sure there will be a solution for this.
this is my html
<a href="http://127.1.1.0:8001/gembead/emstones.html?car=36">Car</a>
Basically i want to redirect to this page with parameter but i dont want my page to load. How can i do this. I am sure there will be a solution for this.
Try this (+info here):
function withoutLoading(url) {
window.history.replaceState(null, null, url);
}
a {
cursor: pointer;
}
<a onclick="withoutLoading('/gembead/emstones.html?car=36')">Car</a>
If you want to redirect to a new link without reloading your current page, you have to use window.hostory.push('url')
or window.hostory.replace('url')
on the onclick event of your button or anchor tab.