Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: event listener behavior different in ie chrome Date: Thu, 15 Sep 2016 01:09:39 +0100 Organization: A noiseless patient Spider Lines: 41 Message-ID: <87oa3qm3b0.fsf@bsb.me.uk> References: <87bmzqoa2h.fsf@bsb.me.uk> <59b6ef73-5015-49ac-97a5-431e16a3282b@googlegroups.com> <87zinami9x.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="7780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oiNZ2xI7ZWLjZH5Z9wSU+73Vgl2TWosA=" Cancel-Lock: sha1:3MMZXJ+G65S+l0TqEGwt5A6aa1o= sha1:rSBEEkBwLEfGLTtd1eQ9NGgALWY= X-BSB-Auth: 1.06eeef19d6668e6057c8.20160915010939BST.87oa3qm3b0.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:31376 Andrew writes: > 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: >> >> >> ... What is the overall objective? >> >> > 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. > > Hi Ben, > > I have a form with a text box in it: > >
>

>
> > 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. I think you will have listen for the the iframe being loaded and reset the form on that event. -- Ben.