|
-
July 3rd, 2006, 10:59 PM
#1
HTML form Control event handling
Hi Can anybody help me to correct this one?
I am getting error message "document.form.Test2" is null or not an object.
I am new to HTML and Scripting.
<html>
<title>JAVASCRIPT</title>
<script language = "JavaScript" type="text/javascript">
function CalculateTotalImpact(){
alert( document.form.Test2.value);
}
</script>
<BODY>
<input id="Test1" type="text" value = "" onchange = "CalculateTotalImpact()" />
<input id="Test2" type="text" value = "" onchange = "CalculateTotalImpact()" />
<INPUT TYPE="button" ONCLICK="CalculateTotalImpact()" VALUE="click to say hello">
</BODY>
</HTML>
Thank you.
Amit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|