Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pressing a Key using Javascript

    Is there any way to perform a KeyPress using Javascript. My web application wrote by asp.net(vb.net), and I want to move cursor to next component when press enter key. So I decide to pass Tab key, then cursor will move next component according to TabIndex. Pls give me a solution.

    Lilupa
    Thanks.

  • #2
    TNO
    TNO is offline
    Regular Coder
    Join Date
    Apr 2005
    Posts
    213
    Thanks
    2
    Thanked 1 Time in 1 Post
    The jscript + WSH offers methods of sending keyboard commands but this is hardly necessary.
    Here are a few examples that may help:

    http://javascript.internet.com/forms/field-focus.html
    http://javascript.internet.com/forms/auto-tab.html
    http://javascript.internet.com/forms...key-focus.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •