I am looking to write a piece of javascript that will append a parameter to the current url and then refresh the page - how can I do this?
One small bug fix for @yeyo's thoughtful answer above.
Change:
var parameters = parser.search.split(/\?|&/);
To: