|
-
Sep 27th, 2002, 04:40 AM
#1
Thread Starter
Hyperactive Member
get Urls
hi to all
How can i get URL value through javascrpt.?
in aspcode we can use like
Request.ServerVariables("HTTP_REFERER")
-
Sep 27th, 2002, 05:54 AM
#2
try location.href
i think this displays the text of the url of the current document
-
Sep 27th, 2002, 08:21 PM
#3
Lively Member
yes
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....
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
-
Sep 28th, 2002, 04:41 AM
#4
Frenzied Member
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.
-
Sep 28th, 2002, 07:59 PM
#5
Lively Member
ah...
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.
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|