Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: JavaScript: Return Key/Enter Key Event Handler


Message #1 by "kriz buenaventura" <vickriz@i...> on Wed, 30 Oct 2002 06:31:44
> can anybody help me with my project encoding on the fly with forms..
 > this is my example code..
<> body onload="document.myform.surname.focus()">
<> form name="myform" method="POST" action="memberlist.htm" onsubmit="return 
v> alidateForm(this)">
 >  <p>FullName: <input type="text" name="fullname" size="50"><br>
 >  Email Address: <input type="text" name="email" size="35"><br>
 >  Birth Date: <input type="text" name="birthdate" size="16"><i>(mm/dd/yyyy)
 >  </i></p>
 >  :
 >  :
 >  ..rest of the code..
 >  <p><input type="submit" value="Register" name="submit"></p>
<> /form>

> now my prob is i want to have a function for key event using the returnkey 
o> r enterkey. the task should be, once i press the enter key it would focus 
m> y cursor the the next input text and the submit button should inactive 
u> ntil when i reach the last the input text next to it.

> please help...


See reply in the javascript_howto list.


/Robert

  Return to Index