Results 1 to 4 of 4

Thread: accessing http_referer in js

  1. #1
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055

    accessing http_referer in js

    I basically need to write someone's http_referer to a cookie in javascript.

    I'm not exactly sure how to access environmental variables like that in JS though. I so very rarely do any JS work its just slipping my mind.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  2. #2
    Registered Alien
    Join Date
    Aug 2004
    Location
    .au/.sg
    Posts
    58
    I think it's document.referrer.

  3. #3
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    that makes sense, can I access it as parent.document.referrer too?
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  4. #4
    you should be able to.
    parent.document.referrer and document.referrer should both work.
    Roger Stringer - freekrai.net
    DBStract - Build Virtual Databases

Similar Threads

  1. Accessing Docs from Network
    By sritz in forum Website Programming & Databases
    Replies: 3
    Last Post: 11-05-2005, 09:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •