:?
I have a questioooooooooonnnnnnnnnnnnnn, Ive posted other places but cant seem to get any replys at all!![]()
I have an html form that looks a little sumthing like this :
Suppose that an HTML document contains the following form
that takes a number from the left input field and outputs its square in the right field upon clicking the button "compute". The form is produced by the following HTML:
<form name="square" action="#">
<input type="text" name="number">
<input type="button" value="compute" onclick="process()">
<input type="text" name="result">
</form>
As it follows from the code, a JavaScript function process() is called if the button is clicked.
How would i write a javascript code for this function to make the form work?