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 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts

    pressing enter rather than clicking button

    I have a submit button for a form but when I press enter it does not press the submit button, I have to manually click on it, how do I change this?

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE is picky about how it fires event. For example, having an onclick event attached to a submit button will prevent enter from firing the submit event.

    FWIW, I altered the earlier case-insensitive-search code to work with pressing enter.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    We need to see your code please, and also on what browser does the pressing enter to submit not work?

  • #4
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts

    thanks

    Thanks for updating that code Harry,

    much appreceiated


  •  

    Posting Permissions

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