You can also use the "Referer" header in the HTTP spec to get the URL of the
page that linked to you, but that header's not always guaranteed to be
there--if the user types your URL directly into the browser, for example,
that header will be empty or not even present.

Ted Neward
Java Instructor, DevelopMentor ( http://www.develop.com )
http://www.javageeks.com/~tneward
-----Original Message-----
From: Alexander Stage <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, March 07, 2000 4:30 PM
Subject: Re: Simulate "Back Button"


>Hi,
>
>as far as i know: there isn`t any http "command" like back (if you
>expect an http header like get or post), which could be used to tell the
>browser go back.
>the browser`s back button functionality is achieved by looking up its
>cache or making a new request to the last url.
>One possible solution to your problem is to send an html page which
>contains only one javascript comand: history.back() or history.go(-n) (n
>is an integer and gives the browser the information how much steps it
>should go back.
>
>I hope this will help you.
>
>Alexander Stage
>e-sixt team
>http://www.e-sixt.com
>
>
>> Miguel Angel Fernandez wrote:
>>
>> Hi all, u know what must I send (via HTTP) to the browser to simulate
>> browser "Back Button" ?
>> Thanks in advance
>> ============================================
>> Miguel Angel Fernandez
>> mailto:[EMAIL PROTECTED]
>> Mobile Phone: (34) 656 404 806
>> Job Phone: (34) 91 353 08 54
>> Java Developer
>> TECSIDEL
>> ============================================
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to