Exercises

6. Create a text field in a form. When the user clicks on a button, a function will be called to make sure the field is not empty. In a JavaScript program use the document.getElementByIdI() method to get a reference to the button object. Use the onclick event property. Complete chapter 13 exercise 6. Do not use any Javascript events in the html form. See Example 13.27 of your textbook. Save this page as chapt13ex6.html in your week 10 folder.

Enter text:

Back to Assignment Web Page.

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page