N
nimad
Hello,
I would like to modify the content of the location bar (address bar)
using JavaScript. Suppose I am at
http://localhost/WebTests/TestEvent.aspx
The followig line:
window.location = "aaa";
changes the content of the address bar to:
http://localhost/WebTests/aaa
which is fine except that it then goes ahead and causes a full
postback to the server. How can I change the content of the location
bar without causing a postback?
I can also use
location.hash="aaa";
this does not trigger a postback but changes the content of the
address bar to:
http://localhost/WebTests#aaa
and i want
http://localhost/WebTests/aaa
Thanks!
I would like to modify the content of the location bar (address bar)
using JavaScript. Suppose I am at
http://localhost/WebTests/TestEvent.aspx
The followig line:
window.location = "aaa";
changes the content of the address bar to:
http://localhost/WebTests/aaa
which is fine except that it then goes ahead and causes a full
postback to the server. How can I change the content of the location
bar without causing a postback?
I can also use
location.hash="aaa";
this does not trigger a postback but changes the content of the
address bar to:
http://localhost/WebTests#aaa
and i want
http://localhost/WebTests/aaa
Thanks!