I had wrote this script to get the changed URL.
I called this in <body onunload = "GetUrl();">
The problem is that it gives the old url but not the changed url.
ie the function url is http://localhost:4241/WorkedOut/Default.aspx
when i changed to www.google.com it gives http://localhost:4241/WorkedOut/Default.aspx but not www.google.com
Expand|Select|Wrap|Line Numbers
- function GetUrl()
- {
- var href = document.location.href;
- alert(href);
- alert(document.location.host);
- }