This is a discussion on "[SOLVED] how to invoking the button through keyboard enter after entering the..." within the JavaScript Forum section. This forum, and the thread "[SOLVED] how to invoking the button through keyboard enter after entering the... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] how to invoking the button through keyboard enter after entering the...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] how to invoking the button through keyboard enter after entering the...
Hi All,
I am in the process of building a web application. In the initial login page , I am allowing the user to type the user name and the password. As per my requirement I need to submit the form by pressing enter (not by clicking thru mouse). I am able to set the focus on button through "document.getElementById("button").focus()" on page load. But when i try entering the password the focus changes from button to the text box and as a result the enter key is not redirecting the page. My question is, IS there any way by which we can set the focus to the button after entering the password , so that my keyboard enter will trigger the form submit? Please help me in this . Its a urgent requirement Thanks for your help in advance Arun Kumar |
|
|
|
||||
|
Re: how to invoking the button through keyboard enter after entering the password ?
<input type="password" onkeypress="if(event.keyCode == 13) this.form.submit()" ...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] animated button problem | ahwell | Flash & Multimedia Forum | 3 | Nov 5th, 2007 21:09 |
| [SOLVED] Selected radio button value | Pugger | JavaScript Forum | 8 | Nov 3rd, 2007 12:16 |
| How Many Keyboard Keys | tox0tes | Flash & Multimedia Forum | 3 | Oct 4th, 2007 21:14 |
| Keyboard! | crackafaza | Webforumz Cafe | 18 | Sep 20th, 2007 20:59 |
| [SOLVED] Disable Button while using Tabs | Anonymous User | JavaScript Forum | 1 | Sep 14th, 2004 09:12 |