(Source Code) JavaScript - Forms I Agree Before Entry
Java
Script Source Codes
|
JavaScript - Forms I Agree Before Entry |
|
JavaScript will only let you enter your
name in this form if you indicate you agree to the terms by first clicking
the I Agree radio button. If you agree, you can enter your name. But, if
you disagree, you will not be able to enter or edit your name. When you
disagree, the box is 'locked.' Useful if you require your visitors to
accept a disclaimer before downloading software or visiting a section of
your members-only site.
<!-- TWO STEPS TO INSTALL AGREE BEFORE ENTRY: 1. Copy the coding into
the HEAD of your HTML document <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin agree = 0; // 0 means 'no', 1 means 'yes' // End --> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> Please enter your name: <input type=text name=box
onFocus="if (!agree)this.blur();" onChange="if
(!agree)this.value='';" size=12>
|

Daily JOBS





