tutorial.eyehunts.com
JavaScript change URL parameter | Simple Example code
One way is fetch the current URL and convert to string. Once you got the string then use replace method to change URL parameter in JavaScript
Rohit