Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
16.7 File Upload Controls
413
ONCHANGE, ONSELECT, ONFOCUS, and ONBLUR
These attributes are used by browsers that support JavaScript to specify 
the action to take when the mouse leaves the textfield after a change has 
occurred, when the user selects text in the textfield, when the textfield 
gets the input focus, and when it loses the input focus, respectively. 
For example, the following code creates a file upload control. Figure
16 19 shows the initial result, and Figure 16 20 shows a typical pop up win 
dow that results when the Browse button is activated.
      ENCTYPE="multipart/form data">
Enter data file below:
Figure 16 19 Initial look of a file upload control.
Figure 16 20 A file chooser resulting from the user clicking on Browse in a file upload 
control.
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