![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Sorry for the simple posting, but my brain is fried at this moment. How do I create a back button to my asp form. I have three pages form pages a visitor will fill out with a "to next step" button. I would also like to have "to previous step" button in there as well. When I try to add any other buttons they all just go to the next page. |
#3
| |||
| |||
|
|
On Tue, 15 Jul 2003 16:39:17 -0500, "Michelle A." <me (AT) me (DOT) com> wrote: Doh.. Can you give me a bit more of the break down of how that would work? Is there a seperate script you need to add in as well? I alread have the form decalred for the "next step" button, so how would I include this back button into the form. Actually, the <form> in the code I posted would be a separate form from the one used to submit the data. Don't put it inside the form></form> tags for the existing form. If that's a problem for your design, replace all the code I posted before with this button INSIDE your existing form tags: input type="button" name="goback" value="Back" onClick="javascript:history.back()" Gary |
#4
| |||
| |||
|
|
Gary, Thanks for update. Don't I need to add the script "history.back" to my page? If so what is that JavaScript code. |
|
I add the line to my page. The button appears but it doesn't do anything. |
|
As you can tell I am pretty green to the world of scripting. Thanks again for your help and patience. |
#5
| |||
| |||
|
|
Must not have been getting it copied just right or something. I got it to start working now Thanks again. |
![]() |
| Thread Tools | |
| Display Modes | |
| |