<form name="RFO" id="RFO" method="post" action="neworde r.asp">
//arow is a hidden field I have made a text field for testing
<input name="arow" id="nrow" type="text">
<script language="JavaS cript">
if (document.RFO.a row.value)
document.write( "<div id='AccAmt'
style='visibili ty:hidden'>Amou nt</div></td>");
else
document.write( "<div id='AccAmt'>Amo unt</div></td>");
</script>
The value of "arow" is set to "1". And the column header "Amount" is hidden.
Depending on what the user does arow will change and "Amount" will become
visible. Lets say the value of arow is "2" and "Amount is visible when the
user hits the submit button.
The value of arow on the next page is "2"...but then the user sees he/she has
made a mistake and hits the "back" button.
On the original page the value of "arow" is still "2" but the column
header "Amount" is once again hidden.
Comment