Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>...</title>
<style type="text/css">
body{text-align:center;font-family:Georgia,Verdana,Arial;font-size:13px;background-color:#fff;color:#000;padding:200px 0px 0px 0px;margin:0px 0px 0px 0px;}
input{text-align:center;}
hr{width:45%;color:Lightsteelblue;}
</style>
<script type="text/javascript">
function calc(){
var frm=document.math_form,
a=new Number(frm.a.value),
b=new Number(frm.b.value);
frm.add.value=a+b;
frm.substract.value=a-b;
}
</script>
</head>
<body>
<form name="math_form" action="">
<table align="center" cellspacing="3" cellpadding="3" border="0" width="500">
<tbody>
<tr><td><input type="text" name="a" /></td><td><input type="text" name="b" /></td></tr>
<tr><td colspan="2"><hr /><input type="button" value="Calculate" onclick="calc()" /><hr /></td></tr>
<tr><td><b>ADD</b><br /><br /><input type="text" name="add" /></td><td><b>SUBSTRUCT</b><br /><br /><input type="text" name="substract" /></td></tr>
</tbody>
</table>
</form>
</body>
</html>
Bookmarks