Results 1 to 2 of 2

Thread: Want to have ENTER key = Click on Button Submit

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2004
    Posts
    369

    Want to have ENTER key = Click on Button Submit

    Hi,

    I have 2 fields on my page (user, password) and 1 button (Connect)

    When he clicks on "Connect" it does a--> javascript:return QuickCheck(this);
    If its true, it is submitted and goes to other page.

    BUT .. Here is my request.

    When the user enters his password .. if he presses ENTER key instead of clicking on Connect, I would like to do as if he clicked on Connect and go with the QuickCheck.

    How can I do that?

  2. #2
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    Re: Want to have ENTER key = Click on Button Submit

    instead of putting javascript:return QuickCheck(this); in the "onclick" event of the button, put it in the "onsubmit" event of the form.

    this will react the same no matter how the form is submitted.


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

Posting Permissions

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



Click Here to Expand Forum to Full Width