Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maintain referrer of Redirect page

Status
Not open for further replies.

Andyfives

Programmer
Feb 22, 2002
46
DK
Hi, Please help, I'm sure this is simple:- there must be an easier way, but I want users to go to an html page that redirects to a cgi process. The reason for this is to use the html page as the redirect source.

The html has the following code segment,

<script>
function redirect() {

document.location = &quot;&quot;;
}
</script>

</head>
<body onLoad=&quot;javascript:redirect();&quot;>

Is there a way that once redirected I can maintain the reference to this page thru the referrer property.

Thanks
 
Through referrer, not that I know of. Sorry.

You could drop the URL into a hidden form field or something.
 
Ok, I may try a different approach and try out a couple of other ideas. Thanks for your help.
 
Hi,
Solved it. Simple, just created a blank form. Heres some code for anyone

<SCRIPT FOR=window EVENT=onload LANGUAGE='JavaScript'>
<!--
{
document.myForm.action = 'document.myForm.submit()
}
//STOP -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=&quot;#FFFFFF&quot; TEXT=&quot;#000000&quot; LINK=&quot;#FF0000&quot; VLINK=&quot;#800000&quot; ALINK=&quot;#FF00FF&quot; BACKGROUND=&quot;?&quot;>

<FORM NAME=&quot;myForm&quot;
METHOD=GET
ENCTYPE=&quot;encodingType&quot;
>
<INPUT
TYPE=&quot;hidden&quot;
NAME=&quot;ref&quot;
VALUE=&quot;PromoOct&quot;>
</FORM>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top