PDA

View Full Version : frames and referring documents


LiliC
05-24-2003, 06:19 PM
I've got a large, unframed site which has lots of ordering buttons linking to a standard HTML order form.

I'm hoping to create a frameset which loads the order form in one frame, and the referring page in the other when the order buttons are clicked.

Is this possible with javascript? I was hoping to find some script that I could just put on the order form page rather than having to change every page on my site.

Any solutions?
Thanks

STDestiny
05-25-2003, 01:33 AM
This may be wrong, as I'm typing it from memory, but I think it should work:


<html>
<head>
<title>
Title
</title>
</head>
<frameset cols="50%,50%">
<frame src="orderform.html">
<script language="Javascript">
document.write("<frame src=\"" + document.referrer +"\">");
</script>
<noscript>
<frame src="nojscriptframe.html">
</noscript>
</frameset>
</html>

LiliC
05-25-2003, 06:33 PM
still no go. Thanks for trying though.