Click to See Complete Forum and Search --> : get Urls
buddu
Sep 27th, 2002, 04:40 AM
hi to all
How can i get URL value through javascrpt.?
in aspcode we can use like
Request.ServerVariables("HTTP_REFERER")
DeadEyes
Sep 27th, 2002, 05:54 AM
try location.href
i think this displays the text of the url of the current document
trojjer
Sep 27th, 2002, 08:21 PM
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....
Rick Bull
Sep 28th, 2002, 04:41 AM
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.
trojjer
Sep 28th, 2002, 07:59 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.