Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14509
| From | "Jukka K. Korpela" <jkorpela@cs.tut.fi> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: I copied from a book and still got an error. |
| Date | 2012-06-15 08:05 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <jrefr8$v8m$1@dont-email.me> (permalink) |
| References | <v7qgt7tgkujpet9v55flpi9vrthm5r1dto@4ax.com> <jr9t3j$bkc$1@dont-email.me> <pvblt7ha1df8tkdmaftfimjvsh6nk8vjvj@4ax.com> |
2012-06-15 7:01, micky wrote: >> The <form> markup really just confuses, as does the use of an input >> element rather than an element with normal text content. > > I thought I needed the input element, in order to make a box in which > to enter text. That is correct in classic HTML: only form fields (<input>, <textarea>) accept text as user input. But for the purpose of demonstrating how JavaScript lets you associate events with clicking (which is what the example seems to be about), such input is not relevant. And in the example, the <input> element has type="button", which makes it a button, not a text input field. In modern HTML, you can make text input from user possible also by using the contenteditable attribute on an element. This way, much richer user input tools can be implemented, using JavaScript. -- Yucca, http://www.cs.tut.fi/~jkorpela/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-13 06:37 -0400
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-13 06:49 -0400
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-13 07:03 -0400
Re: I copied from a book and still got an error. Stefan Weiss <krewecherl@gmail.com> - 2012-06-13 13:27 +0200
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 00:01 -0400
Re: I copied from a book and still got an error. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 06:11 +0000
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 02:24 -0400
Re: I copied from a book and still got an error. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 06:38 +0000
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 05:01 -0400
Re: I copied from a book and still got an error. Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-16 21:55 +0100
Re: I copied from a book and still got an error. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-17 07:50 +0000
Re: I copied from a book and still got an error. Dr J R Stockton <reply1225@merlyn.demon.co.uk.not.invalid> - 2012-06-19 20:37 +0100
Re: I copied from a book and still got an error. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-20 15:10 +0000
Re: I copied from a book and still got an error. Stefan Weiss <krewecherl@gmail.com> - 2012-06-15 15:53 +0200
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 18:07 -0400
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-19 21:22 -0400
Re: I copied from a book and still got an error. Martin Honnen <mahotrash@yahoo.de> - 2012-06-13 13:04 +0200
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 00:01 -0400
Re: I copied from a book and still got an error. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-06-13 14:21 +0300
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 00:01 -0400
Re: I copied from a book and still got an error. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-06-15 08:05 +0300
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 02:37 -0400
Re: I copied from a book and still got an error. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-06-15 09:58 +0300
Re: I copied from a book and still got an error. micky <NONONOmisc07@bigfoot.com> - 2012-06-15 04:45 -0400
csiph-web