[thelist] javascript: submit on enter

me me at cgiguy.com
Tue Oct 30 18:36:09 CST 2001


Hey Bill,

Are you aware that the little popup box thingy on your page
makes it so that you cant read the top of your page?
maybe you meant for it to work like that. i dunno.

i am using ie5 if it makes a diff.

me.


----- Original Message ----- 
From: Bill Mason <evolt at accessibleinter.net>
To: <thelist at lists.evolt.org>
Sent: Tuesday, October 30, 2001 4:24 PM
Subject: Re: [thelist] javascript: submit on enter


> At 04:18 PM 10/30/2001, you wrote:
> ><form name="perf">
> ><input name="blah"></input>
> ><input type="button" value="go" onClick="perfIt(this.form);"></input>
> ></form>
> >
> >when a user hits 'enter', the form submits to the same page and nothing
> >happens.  how do i execute the 'perfIt' function when a user hits the
> >'enter' key from the first input bar (without clicking the button)?
> 
> You could try adding onkeypress="perflt(this.form);" to the input tag.
> 
> Bill Mason
> Accessible Internet
> evolt at accessibleinter.net
> http://www.accessibleinter.net/
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list