<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
 <table border=1>
  <tr>
   <td colspan=2 align=center>Plus Example
  </tr>

  <tr>
   <td>number1:
   <td><input type=text placeholder="input number1" id=num1>
  </tr>

  <tr>
   <td>number2:
   <td><input type=text placeholder="input number2" id=num2>
  </tr>

  <tr>
   <td colspan=2 align=center><input type=button value=plus id=plus>
  </tr>

  <tr>
   <td colspan=2 align=center><input type=text placeholder="result here" id=result>
  </tr>
  
</table>

<script type="text/javascript">

document.getElementById("plus").onclick = function(){
 var num1 = parseInt(document.getElementById("num1").value);
 var num2 = parseInt(document.getElementById("num2").value);
 document.getElementById("result").value = num1 + num2;
 
 
}

</script>
</body>
</html>

+ Recent posts