473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Back button in form...

Mel
how can i have a "Prev" button in my form to take me back to previous page
WITHOUT Javascript ?

thanks
Mel
Jul 20 '05 #1
5 1750
"Mel" <me**********@ssa.gov> wrote in message
news:c1**********@s0b1a68.ssa.gov...
how can i have a "Prev" button in my form to take me back to previous page WITHOUT Javascript ?


Just use an ordinary link, and if you must, you can style it like a
button.
--
Andrew Urquhart
- FAQ: http://jibbering.com/faq
- Archive: http://groups.google.com/groups?grou...ang.javascript
- Reply: http://www.andrewu.co.uk/about/conta...ject=Re%3A+clj
Jul 20 '05 #2
Just do a link back to the forms url......means the user will loose all
their inputted data. However, you could advise them to use their browsers
'back' button. This would maintain the inputed values.

Stu

"Mel" <me**********@ssa.gov> wrote in message
news:c1**********@s0b1a68.ssa.gov...
how can i have a "Prev" button in my form to take me back to previous page
WITHOUT Javascript ?

thanks
Mel

Jul 20 '05 #3
Stuart Palmer wrote:
Just do a link back to the forms url......means the user will loose
all their inputted data. However, you could advise them to use their
browsers 'back' button. This would maintain the inputed values.


You could just simulate the back button with:

<input type="button" name="back" value="back" onclick="history.go(-1)"/>
Jul 20 '05 #4
DB McGee wrote:
Stuart Palmer wrote:
Just do a link back to the forms url......means the user will loose
all their inputted data. However, you could advise them to use their
browsers 'back' button. This would maintain the inputed values.

You could just simulate the back button with:

<input type="button" name="back" value="back" onclick="history.go(-1)"/>


Before answering a question, even an answer to the original, one should
endeavor to read the original question:

<quote>
how can i have a "Prev" button in my form to take me back to previous
page WITHOUT Javascript ?
</quote>

To which your solution is utterly useless since it depends on javascript
and the history being scriptable.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 20 '05 #5
Randy Webb wrote:
DB McGee wrote:
Stuart Palmer wrote:
Just do a link back to the forms url......means the user will loose
all their inputted data. However, you could advise them to use their
browsers 'back' button. This would maintain the inputed values.

You could just simulate the back button with:

<input type="button" name="back" value="back"
onclick="history.go(-1)"/>


I assumed since the question was posted to comp.lang.javascript that the OP was
searching for a JavaScript solution :)
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
7
by: Sridhar | last post by:
Hi, I have a question regarding the Page_Load method and Back Button of Internet explorer. I have created a webform. In that webform I have several Text Boxes. Also I have two buttons. When I...
2
by: ShaneFowlkes | last post by:
I created a couple of quick test pages and to my surprise, these do not work either. When I click "Go Back" on test2.aspx, nothing happens. Ideas?? Surely I must be missing something obvious........
4
by: Rolf Rosenquist | last post by:
From a page with a form I collect the fields in the next page. The fields are compared with a database and if a certain condition does not fit, I want to go back to the first page with the form,...
7
by: mohammed.naghman | last post by:
Hi, I have 2 submit buttons in a jsp page. One of them takes me to page2.jsp and also passes the values enetered to page2.I have a link in the page2 that does a history.back to come to the...
0
by: sweatha | last post by:
Hello Friends I have created the project with 2 forms. In the first form, I have 2 buttons. The first button has the backcolor as "fusia" by default. If I click the button means then backcolor of...
8
by: Harvey Schmidlapp | last post by:
I have a fairly complex form (generated by means of an ASP 3 page). The form is used to define a query against a database. After running a query, the user hits their browser's back button and goes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.