sanjuT
09-17-2003, 09:00 AM
this may be a stupid question, but is there a way to submit a form without aving a submit button visible on the page?
i have a function that submits a form by pressing ENTER, cause in Netscape 4.76 the enter button doesn't work by default:
<!--
function lemmein(keypressed) {
var key;
if (document.all) {
key=window.event.keyCode;
} else {
key=keypressed.which;
}
if (key==13) {
document.form1.submit();
}
}
// -->
and then:
<!--
document.form1.Password.onkeypress=lemmein;
document.form1.user.onkeypress=lemmein;
// -->
Can i use this, or something similar, without having a submit button present?
THANKS!!
i have a function that submits a form by pressing ENTER, cause in Netscape 4.76 the enter button doesn't work by default:
<!--
function lemmein(keypressed) {
var key;
if (document.all) {
key=window.event.keyCode;
} else {
key=keypressed.which;
}
if (key==13) {
document.form1.submit();
}
}
// -->
and then:
<!--
document.form1.Password.onkeypress=lemmein;
document.form1.user.onkeypress=lemmein;
// -->
Can i use this, or something similar, without having a submit button present?
THANKS!!