Hi,
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
[CODE=javascript] function GetUrl()
{
var href = document.locati on.href;
alert(href);
alert(document. location.host);
}
[/CODE]
Thanks in advance
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
[CODE=javascript] function GetUrl()
{
var href = document.locati on.href;
alert(href);
alert(document. location.host);
}
[/CODE]
Thanks in advance
Comment