Create a doubleit function in javascript


Discuss the below:

Q: Create a Web page named double.html whose HEAD includes the DoubleIt function. The page should contain a text box with an initial value of 1 and a button labeled "Double It". When the user clicks the button, the DoubleIt function should be called to double the contents of the text box.

If you start with a value of 1 in the text box, how many times must you click the button before the displayed value exceeds 500? How many times to exceed 1000?

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a doubleit function in javascript
Reference No:- TGS01938353

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)