View Full Version : <input type="button"
Anyone know a way to get an <input type="button" onClicl='...'> to behave like a submit button in that you can use the Enter key to simulate a mouse click. With a button you have to tab to highlight it then press enter.
07-06-2005, 10:17 PM
That's how a submit button works too. If you press enter within a form element other that the submit button, the submit method of the form element is envoked. When you click on the submit button the same thing happens.
The submit button is just a button that tells the form to submit.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.