I\'m wondering how I can add a new parameter to an existing url. The problem is: the url may also contain an anchor.
For example:
http://www.example
Something like this ?
var param = "x=y"; var split = url.split('#'); url = split[0] + '&' + param + "#" + split[1];