in reply to history.back()

Perl generally works on the server side. JavaScript generally works on the browser side. The server does not have access to the browser's history, so it is inaccessible to Perl.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^2: history.back()
by shiza (Hermit) on Jun 24, 2005 at 21:25 UTC
    #!/path/to/perl use strict; my $q = CGI->new(); print $q->header(); print qq(<script>history.go(-1);</script>); exit;
    If I recall correctly, history.back() is not cross-browser friendly.