viewing paste Unknown #41644 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 <HTML>
      <HEAD>
        <TITLE>Sum</TITLE>
 
        <script type="text/javascript">
          function sum()
          {
                       
             var num1 = document.myform.number1.value;
             var num2 = document.myform.number2.value;
             var sum = num1 + parseInt(num2);
             document.getElementById('add').
           
          }
        </script>
      </HEAD>
 
      <BODY>
        <FORM NAME="myform">
          <INPUT TYPE="text" NAME="text1" VALUE=""/> +
          <INPUT TYPE="text" NAME="text2" VALUE=""/>
          <INPUT TYPE="button" NAME="button" Value="=" onClick="sum()"/>
          <INPUT TYPE="text" ID="add" NAME="result" VALUE=""/>
        </FORM>
 
      </BODY>
</HTML>
Viewed 511 times, submitted by unknown.