Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Submitting a form when you hit enter after password


Message #1 by "Arnold Matthews" <arnoldm@m...> on Wed, 15 Nov 2000 16:13:23 -0500
Dear Wrox Press

Is there someway to submit the form by hitting <enter> after you have typed
the password but are still on that field - that is, without going to the
submit button (a graphic)


Many thanks,  Arnold Matthews

My code is below:

<html>
<head>
<title>Submit Form With Image and Javascript</title>

<script language="JavaScript">
<!--
function NavPost() {
  document.theform.submit();
}
//-->
</script>

</head>
<body bgcolor="#FFFFCC">
<FORM NAME="theform" ACTION="ClientMenu.asp" METHOD=POST>
  <p><b> Enter Your Password</b>  
    <INPUT TYPE="PASSWORD" NAME="ClientPassword">
  </p>
  <p><a href="javascript:NavPost()"><img
src="images/GoToClientAreaButton.jpg"></a>
  </p>
</FORM>
</body>


</html>



  Return to Index