SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member kacieh80's Avatar
    Join Date
    Aug 2007
    Location
    Carrollton, TX
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    document.referer

    I need to say something like:

    http://www.blahblahblah.com?r=document.referer

    but obviously it isn't that easy, could anyone help me w/ the syntax on this one?

  2. #2
    SitePoint Member kacieh80's Avatar
    Join Date
    Aug 2007
    Location
    Carrollton, TX
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well I figured it out thanks to PshycoCoders help at dreamincode.net, gonna post it for anyone why may want to do this

    Code:
    <script type="text/javascript" language="javascript">
    function AppendReferer(link)
    {
        var ref = document.referrer;
        var new_link = '<img src="'+link+'&r='+escape(ref)+'"'+'border="0" height="0" width="0">';
        document.write(new_link);
    }
    </script>
    <script type="text/javascript">
    AppendReferer('http://www.glyphlink.com/w.cfm?l=63');
    </script>


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
  •