Javascript / Forms / enable/ disable text field
allows you to control whether a user can input something into a text area or not.
<!---Head--->
<script language="javascript">
function skip(){ this.blur(); }
</script>
<!---Body--->
<FORM NAME="formName" method="">
<input type="text" name="aTextField" length="10" onfocus="skip()">
</form>
<A HREF="javascript:document.formName.aTextField.onfocus = skip; void
(0)">disable text field</A>
<A HREF="javascript:document.formName.aTextField.onfocus = null; void
(0)">enable text field</A>
No Reviews to show
