Hi macmac1
What birklea answered is correct.He explained it very clear.
If you want to catch the value of the field 'nu' every time the user changes its contents,you should use the 'onchange' event handler.
If you want to get the value of 'nu' every time the user click in other field,or press tab or enter,you should use the 'onblur' event handler.
Once you decided how you will manipulate the user's action,
you can get the value of 'nu' easily'
Here I assume you wish to get the value of 'nu' when the user enters in other field,just clicking on it,pressing tab or enter.If you wish the other case,just replace 'onblur' by 'onchange' in your form.
<html>
<title>Untitled</title>
<script language="javascript">
<!--
function getval()
{
fieldvalue=document.fu.nu.value;
document.getElementById('showvalue').innerText=The value of the field is '+fieldvalue;
}
//-->
</script>
</head>
<body>
<div align="center">
<form name="fu">
<input name="nu" onblur="getval()">
<!-- user will input a numeric value -->
</form
<!---here you see the value of 'nu'-->
<hr>
<p id="showvalue">
This is the value of the field
</p>
<hr>
</div>
</body>
</html>
Please note that this will work on IE 5 and up and not NN,because 'innerText' property is not soported by NN.
You don't need to use CFML to display the value.
I hope this helps
alefusion