Problems


[Page 541 (continued)]

16.1

Write an HTML page that has a button in it. When you click on the button, use JavaScript to change the background color of the button.

16.2

Write an HTML page that has a button in it. When you click on the button, use JavaScript to change some text that tells you the number of times the button was clicked on.

16.3

Write an HTML page that has several radio buttons on it. When a radio button is clicked, update some text on the page to say which radio button is clicked.

16.4

Write an HTML page that has a text field in it. Write some JavaScript to change some text on the page when the string in the text field has been changed. For instance, the user could enter her name in a text field, and the text on the page could change to use her name.

16.5

Write an HTML page that has a button in it. When the cursor is over the button, use JavaScript to change the background color of the button. Change the background color of the button again when the cursor is no longer over the button.

16.6

Write an HTML page that shows a frame from one of the movies. Add a button to the page, and each time the button is clicked show the next frame in the movie.

16.7

Write an HTML page that contains a text field for a phone number and a button. When the button is clicked, check that the text field has only numeric characters (and maybe a dash '-') in it. If not, use an alert dialog to inform the user.

16.8

Write an HTML page that contains a text field for a credit card number and a button. When the button is clicked, check that the text field has only numeric characters in it, and check that the number of characters is 16. If not, use an alert dialog to inform the user.


[Page 542]
16.9

Write an HTML page that contains a text field for a name and a button. When the button is clicked, check that the text field has only alphabetic characters (no numbers) in it. If not, use an alert dialog to inform the user.

16.10

Write an HTML page that plays some background music when the page is first loaded. Use a JavaScript function to do this.

16.11

Write an HTML page that has a button, and when you click on the button, some text is displayed in the browser status bar.

16.12

Write an HTML page that has a button, and when you click on the button, display another HTML page in a new browser window.



Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
ISBN: N/A
EAN: N/A
Year: 2007
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net