Results 1 to 5 of 5

Thread: get Urls

  1. #1

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446

    get Urls

    hi to all
    How can i get URL value through javascrpt.?

    in aspcode we can use like
    Request.ServerVariables("HTTP_REFERER")
    prasad

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    try location.href
    i think this displays the text of the url of the current document

  3. #3
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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>

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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.

  5. #5
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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
  •  



Click Here to Expand Forum to Full Width