Apply Your Knowledge^567
Apply Your Knowledge
- Predict the Result. Given the following code, what will happen when the user clicks
the button?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
JavaScript Practice
Using JavaScript
- Fill in the Missing Code. This Web page should prompt the user for the name of a
song and print the song name in the document. The missing code is indicated by
"_". Fill in the missing code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
JavaScript Practice
Using JavaScript
- Find the Error. When this page is loaded in the Web browser it is supposed to dis-
play an error message if the user does not have any data in the Name input box. It
is not working properly, and instead submits the form regardless of the missing