By clicking a button, the url has to change but html should stay the same
$('#v-pills-profile-tab').on('click', function (event) {
// change url
// and html remains
})
By clicking a button, the url has to change but html should stay the same
$('#v-pills-profile-tab').on('click', function (event) {
// change url
// and html remains
})
2
Answers
For changing url, you can simply do:
Also,
For reloading the page, you can simply use:
Note
When you change the url, the page reloads itself on its own. You don’t have to reload it
You can use History.pushState() and WindowEventHandlers.onpopstate