Forms >>> Accept Terms.
 
Script Categories













Forms >>> Accept Terms.

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.

I accept:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}
else
return true;
}
//  End -->
</script>
<center>
<form action="http://yaldex.com/JSFactory_Pro.htm" 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='http://yaldex.com/JSFactory_Pro.htm';">
</form>
</center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©