Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

append to url javascript

var url = window.location.href;    
if (url.indexOf('?') > -1){
   url += '&param=1'
}else{
   url += '?param=1'
}
window.location.href = url;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #url #javascript
ADD COMMENT
Topic
Name
3+7 =