HTML/Javascript question

Discussion in 'OT Technology' started by Senor Spielbergo, Feb 8, 2005.

  1. Senor Spielbergo

    Senor Spielbergo New Member

    Joined:
    Oct 11, 2004
    Messages:
    534
    Likes Received:
    0
    Location:
    Toronto
    I am trying to make a form that has multiple submit buttons, each with their own action. My problem is, upon hitting enter (when the focus is somewhere in the form), the wrong submit button is used. Is there a to tell the form which button to use when the enter key is used?
     
  2. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    I've never figured out how to get the enter keybinding to work properly in HTML forms. Not sure if it can be done.
     
  3. OmniFire

    OmniFire *************************

    Joined:
    Oct 19, 2003
    Messages:
    3,778
    Likes Received:
    0
    Location:
    Austin
    focus(); ???
     
  4. RenaultFreak

    RenaultFreak OMG

    Joined:
    Apr 1, 2002
    Messages:
    88,686
    Likes Received:
    0
    Location:
    CCS, VE
    can you guys from the computer and programming forum help this guy out?
    Thanks :)
     

Share This Page