HTML and CSS Reference
In-Depth Information
1. What is wrong with the following alert box?
alert("Hello<br />", "world!<br />");
Create a JavaScript program that produces the previous alert box. When the
alert dialog box appears, what does the program do?
2. What is the return value of the prompt method if the user doesn't enter any-
thing? Where is the return value stored?
3. Create a JavaScript program that prompts the user for a phone number and then
asks the user for confirmation.
Search WWH ::

Custom Search