Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31375
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-09-14 11:53 -0700 |
| References | <f56b7236-7009-4a5a-b50c-a8c8ff3f5769@googlegroups.com> <87bmzqoa2h.fsf@bsb.me.uk> <59b6ef73-5015-49ac-97a5-431e16a3282b@googlegroups.com> <87zinami9x.fsf@bsb.me.uk> |
| Message-ID | <d44e9c5d-55d6-4471-bec4-e7075aca07aa@googlegroups.com> (permalink) |
| Subject | Re: event listener behavior different in ie chrome |
| From | Andrew <andrew.m.levin.1@gmail.com> |
On Wednesday, September 14, 2016 at 8:46:27 PM UTC+2, Ben Bacarisse wrote: > Andrew <*@gmail.com> writes: > > > On Wednesday, September 14, 2016 at 4:00:47 PM UTC+2, Ben Bacarisse wrote: > <snip> > >> ... What is the overall objective? > <snip> > > I would like to submit the form then reset the form (so that the > > submitted form is not empty). How can I guarantee that the submit and > > the reset are performed in the order that I want them to be performed? > > This is not your overall goal. That's just what the code tries to do > written out in English -- i.e. there's no new information here. > > I don't know any way to help you do what you want without more > information. The details depend on too many things left unspecified. > > -- > Ben. Hi Ben, I have a form with a text box in it: <form id="add_message_form" target="console_iframe1" method="post" action="add_message"> <input type="text" id="message" name="message" size="100" /> <br> <br> </form> I would like the following to happen when the user presses enter in the text box. 1) The form will be submitted. 2) The text in the text box will disappear. Obviously, I want the form to be submitted with a nonempty text box value. Andrew
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 06:14 -0700
Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-14 15:00 +0100
Re: event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 07:13 -0700
Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-14 19:46 +0100
Re: event listener behavior different in ie chrome Andrew <andrew.m.levin.1@gmail.com> - 2016-09-14 11:53 -0700
Re: event listener behavior different in ie chrome Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-15 01:09 +0100
Re: event listener behavior different in ie chrome Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-09-15 08:16 +0200
csiph-web