I want to change the following example URL
http://www.mydomain.net/site?argument1=test1&argument2=test2#anchor
to
http://www.mydomain.net/site?argument1=test1&argument2=test2
with JavaScript. How would I best do that?
EDIT: With 'anchor' and the other text elements, I meant generic elements. So the anchor could also be another text. Sorry.
http://www.mydomain.net/site#anchor?argument1=test1&argument2=test2) This form could be used to create a history for Ajax requests, including parameters. The "query string" is part of the hash.