Call Button onClick event

Posted on 2009-04-30
Last Modified: 2012-05-06
How can I call the btnSubmit's OnClick event onKeydown of a TAB button in the keyboard.

I have a textbox and a button in my ASPX page. When a user after filling the text in the textbox hits TAB key on the keyboard it should call the btnSubmit's onClick event.

Please help
Question by:rowmark
    LVL 8

    Accepted Solution

    Use the link below to get the event when the user clicks the tab key.
    Then call your button click code here.
    LVL 7

    Assisted Solution

    LVL 7

    Expert Comment

    another article (has example of tab key also)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now