[thelist] Passing URL Value

Richard Bennett mail at richardinfo.com
Wed Jun 20 16:16:16 CDT 2001

Client-side javascript will do this too, something like this:

Sending page:

<script language="JavaScript"><!--
    var originalURL = document.referrer||'Referrer unknown'

function goTo(url){
    location.href = url+'?'+ escape(originalURL);
<a href="http://www.cnn.com?Referrer%20unknown"
onclick="goTo('http://www.cnn.com');return false">go</a>

Receiving page:

<script language="JavaScript"><!--
    var originalURL = unescape(location.search.substring(1));
    alert(originalURL );

This should also work if javascript is not enabled, or the referrer value is
not available (if you opened the page from a bookmark)
I didn't test it so there might be some typos in it somewhere.

Richard Bennett

mail at richardinfo.com

Richard Bennett
Independent Software Consultant
Leemputstraat 41
2600 Berchem, Belgium
Phone: + 32(0)475 71 91 84

----- Original Message -----
From: "Clara Gruen" <clara at gradschools.com>
To: <thelist at lists.evolt.org>
Sent: 20 June, 2001 22:13
Subject: [thelist] Passing URL Value

> On my company's website, we have an inquiry system for students to send a
> profile to an institution they are applying to.  The system has multiple
> steps to it and once the student completes the steps and sends the
> the continue button takes them back to the page they came from.  An
> of this can be seen at:
> http://www.gradschools.com/listings/east/animal_east.html
> The system starts by clicking one of the email links in the program
> descriptions.
> All of our databases right now are in File Maker Pro and are in the
> of being converted to DB2 but this is being done in pieces.  The inquiry
> system is the first to move with the actual content being moved in a few
> months.  Right now, we use a plug-in program (FlexMail) to pass the URL of
> the referring page through the system.
> The question:  is there a javascript or some other easy way to capture the
> URL of a referring page so that it can be passed to the next page where
> inquiry system starts?  I hope that makes sense.  Thanks for the help!
> -Clara
> <><><><><><><><><><><><><><><><><><><><><><><><><>
> Clara Gruen
> Product Manager, Gradschools.com
> http://www.gradschools.com
> 1450 Edgmont Avenue
> Suite #140
> Chester, PA  19013  USA
> phone: 1-610-499-9200  fax: 1-610-499-9205
> toll free: 1-877-4040-EDU
> email: clara at gradschools.com
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list