Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting submit button action

Status
Not open for further replies.

mickeyg

Technical User
Mar 30, 2001
120
US
On a form (onSubmit="return valform(this)"), I have a input type="submit" button to go "Back" and images with links for "Continue" and "Cancel". Back is not an image because I was having issues it always wanting to "Continue".

Pressing "Enter" in the middle of the form, fires the "Back" action as per the type="submit". However, I would really like it to fire the "Continue" action.

Thank you for your assistance,
Mickey
 
change your back button from:
Code:
<input type=submit>
to:
Code:
<input type=button>
That will prevent the page from firing the back button when enter is pressed.

-kaht

banghead.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top