"CAPIE, Gideon" wrote:
> Does anyone know of an easy way to replicate the "back" button in Netscape
> and IE? I want to have pages which can be accessed from many locations and
> I would like to give the user the option to return to the previous page
> without having to use Netscape/IE's back button.
>
If you can use perl scripts on your server, a relatively painless non
Javascript method is to use the 'Page Last Visited' script at:
http://worldwidemart.com/scripts/snippets.shtml
which (slightly modified) goes like:
#!/usr/bin/perl
# Last Page Visited
# Created by Matt Wright
# Created on: 10/15/95 Last Modified on: 10/15/95
# Version 1.0
# Requires Server Side Includes
# One way of doing it:
# <ul>
# <li><!--#exec cgi="http://your.host.xxx/cgi-bin/referer.pl"-->
# </ul>
print "Content-type: text/html\n\n";
print "<a href=\"$ENV{'HTTP_REFERER'}\">";
print "Back</a>\n";
i.
--
#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%
Ian Usher, Computer Support & Webmonger [w] http://i.am/i.usher/
Department of Geography, [e] [log in to unmask]
University College London, Chandler House, [t] +44 (0)171 504 4290
2 Wakefield St., London, WC1N 1PG, U.K. [f] +44 (0)171 504 4293
#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#$%#<><$%#$%#$%#$%#$%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|