Enter key

Results 1 to 2 of 2

Thread: Enter key

  1. #1
    MikeO Guest

    Default Enter key

    I can&#039t get the enter key to submit the form when using the button design time control. Does anyone have any suggestions?<BR><BR>Thanks

  2. #2
    Rob Guest

    Default A little Javascript

    This will work.. IE and Netscape<BR><BR>&#060;script language="javascript"&#062;<BR>var hotkey=13<BR>if (document.layers)<BR>document.captureEvents(Event. KEYPRESS)<BR>function Enter(e){<BR>if (document.layers){<BR>if (e.which==hotkey)<BR>ValidSend(0)<BR>}<BR>else if (document.all){<BR>if (event.keyCode==hotkey)<BR>ValidSend(0)<BR>}<BR>}< BR>document.onkeypress=Enter<BR>&#060;/script&#062;<BR><BR>Regards,<BR>Rob

Posting Permissions

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