Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
398
Chapter 16 Using HTML Forms
will want to use the 
POST
 method when using a password field so that a
bystander cannot read the unobscured password from the URL display at the
top of the browser. 
Core Approach
To protect the user's privacy, always use 
POST
 when creating forms with 
password fields.
NAME, VALUE, SIZE, MAXLENGTH, ONCHANGE, 
ONSELECT, ONFOCUS, ONBLUR, ONKEYDOWN, ONKEY 
PRESS, and ONKEYUP
Attributes for password fields are used in exactly the same manner as 
with textfields. 
Figure 16 9 A password field created by means of 
.
Text Areas
HTML Element:
Attributes:
NAME
 (required), 
ROWS
 (required), 
COLS
 (required), 
WRAP
(nonstandard), 
ONCHANGE
, 
ONSELECT
, 
ONFOCUS
, 
ONBLUR
, 
ONKEYDOWN
, 
ONKEYPRESS
, 
ONKEYUP
The 
TEXTAREA
 element creates a multiline text area; see Figure 16 10. There
is no 
VALUE
 attribute; instead, text between the start and end tags is used as
the initial contents of the text area. The initial text between 
 is treated similarly to text inside the now obsolete 
XMP
 ele 
ment. That is, white space in this initial text is maintained and HTML
markup between the start and end tags is taken literally, except for character
entities such as 
<
, 
©
, and so forth, which are interpreted normally.
Unless a custom 
ENCTYPE
 is used in the form (see Section 16.2,  The FORM
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




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

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