Yes, you can capture onkeypress event and then get the key code form
the envent object that you must have as a parameter in your JS function
(Navigator) or in the general event object (in Explorer), you can use
its method "which" to get it.


If you don't understand, tell me

Bye,  Dani

----- Mensaje Original -----
De: vivek tiwari <[EMAIL PROTECTED]>
Fecha: Miércoles, Noviembre 8, 2000 7:45 am
Asunto: Button Click on Enter

> Hi All ,
>
> I have a simple login form with two textboxes :
> Login , Password and a submit button .
>
> When the user has finished entering the password and
> presses enter on the keyboard , automatically the
> submit button is pressed and he is taken to the next
> page , instead of having to click the submit button
> using the mouse .
>
> This only works in IE but not in Netscape . Does
> anyone know of a solution to do this in Netscape ?
>
> Can keyboard events like "EnterKeyPressed" be captured
> in JavaScript ?
>
>
> Thanks
> Vivek
>
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one Place.
> http://shopping.yahoo.com/
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>


________________________________________________________________
Consigue tu cuenta gratuita de acceso a internet y de correo en
http://www.navegalia.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to