Description:
This Script allows your visitors or customers to accept your terms and conditions before proceeding by ticking a Check Box. If they don't agree, an exit box on the form takes them back to the home page.
JavaScript Functions: <script language="JavaScript"> <!-- Begin function checkCheckBox(f){ if (f.agree.checked == false ) { alert('Please check the box to continue.'); return false; }else return true; } // End --> </script>
HTML Script: <form action="" method="POST" onsubmit="return checkCheckBox(this)"> I accept: <input type="checkbox" value="0" name="agree"> <input type="submit" value="Continue Order"> <input type="button" value="Exit" onclick="document.location.href='/index.html';"> </form>