hi to all
How can i get URL value through javascrpt.?
in aspcode we can use like
Request.ServerVariables("HTTP_REFERER")
Printable View
hi to all
How can i get URL value through javascrpt.?
in aspcode we can use like
Request.ServerVariables("HTTP_REFERER")
try location.href
i think this displays the text of the url of the current document
Yeah, it does; Also window.location on its own works.
Don't know about getting the referrer URL though, on the clientside... there's probably a way to obtain it through the HTTP Headers collection somehow; though entirely not sure....
I think you can do document.referrer but it does have some problems in older browsers, and I think IE if you're offline or something like that.
Of course, I forgot about that property. I'd just stick to serverside stuff to find out those details though; a lot more reliable, usually.