Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to go back to previous page.

by BigLug (Chaplain)
on Apr 22, 2004 at 03:07 UTC ( [id://347200]=note: print w/replies, xml ) Need Help??


in reply to how to go back to previous page.

Perl itself can't control anything in your browser. Perl just prints strings*. If a webserver runs the perl script, it takes the output of said script and sends it to the browser.

As the previous poster has pointed out, you need to output some HTML that includes some javascript that uses the history object. Or, if you know the URL of the previous page, you can use the Location header. Most browsers honor this request and send the browser to the page specified.

*This is an oversimplification of what perl does, but it's the fundamental function of Perl when used as part of the CGI.

"Get real! This is a discussion group, not a helpdesk. You post something, we discuss its implications. If the discussion happens to answer a question you've asked, that's incidental." -- nobull@mail.com in clpm

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://347200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found