Question: Create a web page that uses prompts to get the buyer's name, phone, and email address (three prompts). Display this information using document.write in a
Create a web page that uses prompts to get the buyer's name, phone, and email address (three prompts). Display this information using document.write in a new window or use an alert. Create a function that checks to see if the user enters their email address correctly. This should prompt the user to re-enter the email address and check the second entry with the first to confirm they are the same. If they are different, output a message to that effect. If they are the same, output the name, phone, and email to a small window.
Add buttons to select the item required. All items should have different prices. By clicking on the button for a particular item you can set the cost depending on which item they choose. You could put the image on the button, or you could have a button and an image - you would need to let the user know they needed to click a button to say how many they wanted. Then you need to display the item requested, the quantity, and the total price (don't forget the dollar sign).
For each item you sell, have a different price for different features OR have it in different sizes with different prices. For example, an ice cream cone or a sweater can come in different sizes. If your site is a cinema, you could have different prices for matinees. (Basically I want you to be able to handle if/else). Output to a small window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
