Click to See Complete Forum and Search --> : Go to the previous page


rkbnair
06-15-2001, 09:22 AM
I have placed a cancel button on an html page. On clicking on that the active
html page has to be previous one. ie. the 'Cancel' button should have the
'Back' button functionality. How can I achieve this?

Thanks

John Cantley
06-15-2001, 11:50 AM
<input type="button" name="Whatever" value="Cancel"
onclick="javascript:history.go(-1)"> is that what you are hunting for?

JC
"rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
news:3b2a0c29$1@news.devx.com...
>
> I have placed a cancel button on an html page. On clicking on that the
active
> html page has to be previous one. ie. the 'Cancel' button should have
the
> 'Back' button functionality. How can I achieve this?
>
> Thanks

rkbnair
06-15-2001, 12:59 PM
Absolutely and it works fine. Thanks John.

"John Cantley" <jcantley@planitservices.com> wrote:
><input type="button" name="Whatever" value="Cancel"
>onclick="javascript:history.go(-1)"> is that what you are hunting for?
>
>JC
>"rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
>news:3b2a0c29$1@news.devx.com...
>>
>> I have placed a cancel button on an html page. On clicking on that the
>active
>> html page has to be previous one. ie. the 'Cancel' button should have
>the
>> 'Back' button functionality. How can I achieve this?
>>
>> Thanks
>
>