views:

127

answers:

2

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
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
"without doing any Server Trip" - that triggers a server trip.
David Dorward