Exercises

2. Create a form that contains two text fields to receive the user's name and address. When the user leaves each text field, use the onBlur event handler to check if the user entered anything in the respective field. If the user didn't, send an alert telling him or her so, and use the focus() method to return focus back to the text field the user just left. Complete chapter 13 exercise 2. Save this page as chapt13ex2.html in your week 10 folder.

Please enter your name:

Please enter your address:


Back to Assignment Web Page.

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page