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
I always use this code, and its working fine ...
var currenturl=location.href; var url = location.href+"?ts="+true; window.location.replace(url,"_self");