Javascript/Java question - processing Netbeans forms
I'm writing a web application using Netbeans (v6.5.1) and Java. I'm using Tomcat on the server side.
If I create a page with a 'Return' button (which takes me to a previous
page) as well as a text field and a 'Search' button, I find that typing
a <CR> character activates the 'Return' button. I want that character to
either be ignored completely or fire the Search button. How do I change
the focus for that specific character?
I assume this will involve javascript, but I'm not a javascript expert, and I don't know what is required. Any pointers to sample code, or an explanation of how it should work would be appreciated...
thanks,
nbc
|