faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

23 of 32 people (72%) answered Yes
Recently 5 of 10 people (50%) answered Yes


How do I submit a page by way of pressing an ENTER KEY?

Jun 26th, 2000 06:21
unknown unknown, Matthew Connor, Brad Tenney, Gene Berger

<Form Name="Name1" METHOD="get" ACTION="PageYouAreSendingTo.asp">
<input Type="button"...>
You can also use a script similar to the one below.  It basically checks 
for the enter key when a key is pressed.
function handleEvent(keyEvent){
        if(keyEvent.which == 13){
then in your input tags you would use this.
<input type="text" name="UserName" value size="18"onkeydown =
In Javascript

© 1999-2004 Synop Pty Ltd