Question: Create a web page named Classify.html that read in a number entered by the user and then determine whether that number is positive, negative or
Create a web page named Classify.html that read in a number entered by the user and then determine whether that number is positive, negative or zero. The page should contain a text box in which the user can enter the number and a button for initiating the analysis. When the user inputs the desired number and clicks the button, a function should be called to identify the number's type and display the result in page division. Be sure to parseFloat the contents of the text box before testing the value. Load your page and verify that it correctly identifies
the positive, negative or zero values.
EXERCISE 11.15 Create a Web page named classify.html that reads in a number entered by the user and then etermines whether that number is positive, negative, or zero. The page should contain a text b which the user can enter the numb the desired number and clicks the button, a function should be called to identify the number's type and display the result in a page division. Be sure to parseFloat the contents of the text box before testing the value. Load your page and verify that it correctly identifies positive, negative, and zero values. ox in er and a button for initiating the analysis. When the user inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
