help with javascript

admin

Administrator
Staff member
Can anyone help me with the following javascript. I am trying to get it to read numbers from the first message box to count1 and then print it out in the last box. This is a code test for me but I can not get it to work. I would appreciate any help. Thanks.









<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>

<Script language='javascript'>

function number_set() {
count1 = 0
count2 = 0
count1 = document.number1
count2 = document.number2
document.test = count1
}
</script>
</head>

<body>
<font size="5">
enter first number.</font><input name="number1" class="enter"><font size="5">enter second number.</font><input name="number2" class="enter">
<input type='button' value='http://www.webdeveloper.com/forum/archive/index.php/set numbers' onclick='Javascript:number_set()' class='button'>
<input name="test">
</body>

</html>
 
Back
Top