Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
404
Chapter 16 Using HTML Forms
Reset Buttons
HTML Element:
 (No End Tag)
Attributes:
VALUE
, 
NAME
, 
ONCLICK
, 
ONDBLCLICK
, 
ONFOCUS
, 
ONBLUR
Reset buttons serve to reset the values of all items in the 
FORM
 to those speci 
fied in the original 
VALUE
 parameters. Their value is never transmitted as part
of the form's contents. 
VALUE
The 
VALUE
 attribute specifies the button label;  Reset  is the default.
NAME
Because reset buttons do not contribute to the data string transmitted 
when the form is submitted, they are not named in standard HTML. 
However, JavaScript permits a 
NAME
 attribute to be used to simplify ref 
erence to the element. 
ONCLICK, ONDBLCLICK, ONFOCUS, and ONBLUR
These nonstandard attributes are used by JavaScript capable browsers 
to associate JavaScript code with the button. The 
ONCLICK
 and 
ONDBL 
CLICK
 code is executed when the button is pressed, the 
ONFOCUS
 code 
when the button gets the input focus, and the 
ONBLUR
 code when it 
loses the focus. HTML attributes are not case sensitive, and these 
attributes are traditionally called 
onClick
, 
onDblClick
, 
onFocus
, and 
onBlur
 by JavaScript programmers. 
HTML Element:
HTML Markup
Attributes:
VALUE
, 
NAME
, 
ONCLICK
,
 ONDBLCLICK
, 
ONFOCUS
, 
ONBLUR
This alternative way of creating reset buttons, supported only by Internet
Explorer, lets you use arbitrary HTML markup for the content of the button.
All attributes are used identically to those in 
.
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