Hi I use java script like this: <head> <script language="javascript"> function highlight() { document.options.continue.focus(); } </script> </head> <body onload="highlight()"> <form name="options" action="whatever.php" method="post"> <input type="submit" name="cancel" value="Cancel"> <input type ="submit" name="continue" value="Continue"> </form> </body>
Tom At 07:51 AM 9/11/01, Jason Caldwell wrote: >On some of my forms I have multiple Submit buttons; > >for example >Button1 = Cancel, and >Button2 = Continue > >Is there a way to make one of them the *default* button so that when a user >presses their Return / Enter Key, *that default* button will be processed? > >Thanks. >Jason >[EMAIL PROTECTED] > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]