in reply to OT- HTML Page and Frame Question

In the head of each frame, place following:

<script language='javascript'> if (self.location.href==top.location.href) { top.location.href = '/some/cgi/script.cgi?'+self.location.href } </script>

Then in the cgi, create the frameset and assign the correct frame url based on $ENV{QUERY_STRING}.

Note, you may also want to check whether URL exists before doing so to avoid possible abuse, and strip any query string info from the URL of the frame.

Something like this (untested):

#!/usr/bin/perl use strict; use warnings; my $url = (split '?', $ENV{QUERY_STRING})[0]; my $path = $url; $path =~ s|http://domain.name|/home/username/public_html|s; -e $path or $url = 'http://domain.name/default_frame.htm'; print <<_END_; Content-type: text/html <html> <frameset cols="200,*"> <frame src="http://domain.name/menu.htm"/> <frame src="$url"/> </frameset> </html> _END_ exit(0);

cLive ;-)