I want to change the URL (QueryString Data) after the Page gets Displayed. How can i do it ?
+7
A:
You can't. The only part of the location
that can be changed without the browser requesting a new URL from the server is the hash (since that is local to the current document).
David Dorward
2009-07-03 06:20:28
A:
The javascript object window.location have property href. So you can change it in JavaScript code in such way:
location.href = 'http://stackoverflow.com/'
Alex Pavlov
2009-07-03 06:20:54
"without doing any Server Trip" - that triggers a server trip.
David Dorward
2009-07-03 06:21:47