Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
A.16 Using HTML Forms
545
Text Areas
Usual form:
Some text
Attributes:
NAME
(required),
ROWS
(required),
COLS
(required),
WRAP
(nonstandard),
ONCHANGE
,
ONSELECT
,
ONFOCUS
,
ONBLUR
,
ONKEYDOWN
,
ONKEYPRESS
,
ONKEYUP
White space in initial text is maintained and HTML markup between
start and end tags is taken literally, except for character entities such as
<
,
©
, and so forth.
Submit Buttons
Usual form:
(no end tag)
Attributes:
NAME
,
VALUE
,
ONCLICK
,
ONDBLCLICK
,
ONFOCUS
,
ONBLUR
When a submit button is clicked, the form is sent to the servlet or other
server side program designated by the
ACTION
parameter of the
FORM
.
Alternative Push Buttons
Usual form:
HTML Markup
Attributes:
NAME
,
VALUE
,
ONCLICK
,
ONDBLCLICK
,
ONFOCUS
,
ONBLUR
Internet Explorer only.
Reset Buttons
Usual form:
(no end tag)
Attributes:
VALUE
,
NAME
,
ONCLICK
,
ONDBLCLICK
,
ONFOCUS
,
ONBLUR
Except for
VALUE
, attributes are only for use with JavaScript.
Alternative Reset Buttons
Usual form:
HTML Markup
Attributes:
VALUE
,
NAME
,
ONCLICK
,
ONDBLCLICK
,
ONFOCUS
,
ONBLUR
Internet Explorer only.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved