On Sat, Mar 29, 2003 at 04:52:17PM +0000, David Cantrell wrote:
> I have a couple of HTML questions ...
> 
> How do I make a form submit itself when the user changes the value of a 
> drop-down list?  Mr. Elthek says Javascript, but a leetle bit more detail 
> would be nice :-)

<select name="selectbox"
onChange="javascript:document.forms.form[0].submit"> roughly, IIRC. for
the first form on the page, of course.
> 
> And, seeing that it would be Just Wrong to make that the only way of 
> submitting the form, I'm going to have a submit button too.  How do I do 
> that funky thang where you can just hit enter to make that button do its 
> thang?
> 
Hmm, I think that's just something that all browsers implement, altho
you could probably write some crack-ridden JS to parse every key the
user presses...

/joel

Reply via email to