<html>
<head>
<script language="vbscript">
sub calc_onclick
frm.result.value = (frm.xxx.value) + (frm.yyy.value)
end sub
</script>
</head>
<body
<form method="post" action="" name=frm>
<input type = "text" name = "xxx">
<input type = "text" name = "yyy"><br>
<input type = "text" name = "result">
<input type="button" name="calc" value="calculate">
</form>
</body>
</html>
this is not working for some reason
<head>
<script language="vbscript">
sub calc_onclick
frm.result.value = (frm.xxx.value) + (frm.yyy.value)
end sub
</script>
</head>
<body
<form method="post" action="" name=frm>
<input type = "text" name = "xxx">
<input type = "text" name = "yyy"><br>
<input type = "text" name = "result">
<input type="button" name="calc" value="calculate">
</form>
</body>
</html>
this is not working for some reason