Adding a parameter to the URL with JavaScript
In a web application that makes use of AJAX calls, I need to submit a request but add a parameter to the end of the URL, for example: Original URL: http://server/myapp.php?id=10 Resulting URL: http://server/myapp.php?id=10&enabled=true Looking for a JavaScript function which parses the URL looking at each parameter, then adds the new parameter or updates the … Read more