Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to append the string to the current url in jquery | Javascript

var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1';    
window.history.pushState({ path: refresh }, '', refresh);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #append #string #current #url #jquery #Javascript
ADD COMMENT
Topic
Name
4+1 =