<script language="javascript">
<!--
var count7=0
function f_count ()
{
count7 ++ ;
document.frm_main.sle_count.value = count7 ;
}
// -->
</script>
<form name="frm_main">
<h4>Example 1: Incrementing a counter within an edit field</h4>
<input type="button" value="Count" name="cb_count" onclick="f_count()">
<input type="text" name="sle_count" value="0000">
</form>
|
|