SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Do click submit button, but don't strike your enter key

    Code:
    <form action='action.htm'>
    
    <input type='text'>
    
    <input type='submit'>
    
    </form>
    With the code above, there are two ways to make it move to action.htm.

    The one is click the buttton "submit."


    The other is strike the enter key after putting your mouse on the input text box.


    I like to make it not to move to action.htm when a user strike the enter key after putting he or her mouse on the input text box.


    I like to force users to click the button "submit" instead of using striking the enter key after putting his or her mouse o the input text box.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Don't do it...simple as that.

    Rework your server-side validation if it is casing trouble
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

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