I want to submit a form but without a submit button. That's to say, I
want that by giving a definite code in a field and then press <ENTER>
the form will be submitted.
For Example
<form name="search_fo rm" method="post" action="search. php">
.....
....
Code: <input type="text" name="code" onKeyPress="if (event.keyCode ==
13) {document.searc h_form.submit() };">
....
....
How can I do it without a submit button?
Many Thanks.
Bettina
want that by giving a definite code in a field and then press <ENTER>
the form will be submitted.
For Example
<form name="search_fo rm" method="post" action="search. php">
.....
....
Code: <input type="text" name="code" onKeyPress="if (event.keyCode ==
13) {document.searc h_form.submit() };">
....
....
How can I do it without a submit button?
Many Thanks.
Bettina
Comment