Answers for "javascript add parameter to url without reload"

0

add parameter to url without reload jquery

var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1';    
window.history.pushState({ path: refresh }, '', refresh);
Posted by: Guest on May-16-2021
0

javascript change get parameter without reload

Since this is the accepted answer, and no longer true, refer to this duplicate question for up to date information.

Original answer follows:

NO
You can come close with the anchor portion of the URL which is accessible by the hash property of the location object

parent.location.hash = "whatever value you want";
Posted by: Guest on March-11-2021

Code answers related to "javascript add parameter to url without reload"

Code answers related to "Javascript"

Browse Popular Code Answers by Language