I am working on a problem and have been trying for several hours to get this to work. Basically, the form language was provided - I need to input JS code to produce the square root of the number that is inputted by the user and display it on the form.
The form produces fine - the program not computing a result is my issue. Any help is appreciated. Code I have produced is as follows:
The form produces fine - the program not computing a result is my issue. Any help is appreciated. Code I have produced is as follows:
Code:
"http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <script language="JavaScript"> function math.pow(number,2) </script> <form name="square" action="#"> <input type="text" name="number"> <input type="button" value="compute" onclick="process()"> <input type="text" name="result"> </form> </html>
Comment