OK. Here's the code that represents what I ended up doing. The major problem is that when "ENTER" is pressed with a single text field, neither button is passed. So, I created a hidden field that I change the name of when ENTER is pressed.
<html><head><title>Test...
This has happened to me, too. Eventually, (1) the computer gods make it work again for no apparent reason or (2) I use another browser to view the source.
Here's a workaround that I'm using when there are at least two fields in a form (no JavaScript required). I'm creating a table so that the second button actually appears first in the list. (Works in Opera 6 and Netscape 7, too).
I still need a solution for forms with a single field (which, I...
Yes, I'm using "document.write(...);" statements. However, these sections are executed conditionally, so (if they are writing the same text in two different places) I'm not sure (sometimes) exactly which statements were actually processed.
However, when I "view source", I...
I'm not sure what you mean by "evaluate the buttons". I modified my HTML so that the following is my onSubmit script, and I get alerts for both "values" whether I press ENTER, Cancel, or Submit. What should I be checking for? I checked all the properties of INPUT/type=submit...
I checked this forum for possible solutions, but none seem to work.
I have a text field and two submit buttons. The left button is "Cancel" and the right is "Submit". The default behavior is that the left button is selected when "Enter" is pressed. I'm trying to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.