40
rated 0 times
[
45]
[
5]
/ answers: 1 / hits: 62649
/ 13 Years ago, fri, august 5, 2011, 12:00:00
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.com?foo=bar#hashme
And I want to add another parameter to it, so it results in this:
http://www.example.com?foo=bar&x=y#hashme
More From » javascript