Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Exercises

If you want to study the form objects further, perform these exercises:

  • Change the validate function in Listing 14.3 so that after a message is displayed indicating that a field is wrong, the cursor is moved to that field. (Use the focus method for the appropriate form element.)

  • Add a text field to the form in Listing 14.3 for an email address. Add a feature to the validate function that verifies that the email address is at least five characters and that it contains the @ symbol.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial