how to create Create an HTML page to add two numbers. Numbers should be provided using the prompt dialog box,and display the result using an alert box.
(please help with my homework who will answer first I will mark them as brilliant )
Answers
Answered by
5
find the attached screenshot.
Attachments:
Answered by
1
Check out the program in the attached pdf file.
This is the description of some of the tags and methods used in the program:
script: This tag is used to refer to an external script file, This tag invokes javascript (in our case) which is later used for inputting the number.
var: Is used for the variable.
prompt(): This method is used to display a dialog box with the message enclosed within quotes.
parseInt(): This method is used for converting the input into an integer.
alert(): This method is used to display an alert box with a message as an output.
Attachments:
Similar questions