Could some one tell me why the following code works in IE but not FF?
I get no errors in either browser to determine why.
Purpose: I want to seletively enter information into a textarea from an textbox. IE works as expected when the checkbox is selected for either or both areas. FF seems to reset and clear all fields and redisplays blank???
Note: I have only tried it in IE (works). Doesn’t work in FF and NS-7.
Thanks for any information.
[CODE]
<html>
<head>
<title>Function Parameters Test</title>
<script language=”javascript”>
<!–
function Enter(tform) {
if (tform.ListCB.checked) { tform.List.value += tform.EnterFld.value+’n’; }
if (tform.PgmCB.checked) { tform.Pgm.value += tform.EnterFld.value+’n’; }
tform.EnterFld.value = ”; tform.EnterFld.focus();
}
//–>
</script>
</head>
<body>
<h1>Function Parameter Test</h1>
<form name=”FuncForm”>
<input type=”text” name=”EnterFld” value=””>
<button name=”EnterBtn” onClick=”javascript:Enter(this.form)”>Enter</button>
<P>
<textarea name=”List” rows=5 cols=20 value=””></textarea>
<input type=”checkbox” name=”ListCB” value=”List”>List
<P>
<textarea name=”Pgm” rows=5 cols=20 value=””></textarea>
<input type=”checkbox” name=”PgmCB” value=”Pgm”>Pgm
</form>
</body>
</html>