Quote:
Originally Posted by oldskool Thank you, then. I am glad to know that I am making some progress. Thanks to you and CrazeD, and jaeusm at times as well. You guys rock ! |
EDIT: Ok, I got it going now, here it is :
Code:
<html>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Check box practice HTML</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<br />
<br />
<br />
<center><h3>Do you agree to the terms above ? <br />
If so, please check the checkbox below.<h3></center>
<br />
<br />
<script type="text/javascript">
/* <![CDATA[ */
//code written by Eric Maddan
function chkBoxselected() {
if (document.terms.chkBox.checked == false) {
window.alert(" You did not click the checkbox to confirm the rules listed above ");
return false;
}
else
{
return true;
}
}
/* ]]> */
</script>
</head>
<body>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<center>
<form name="terms">
<input type="checkbox" name="chkBox" /> I accept the terms and conditions<br /><br />
<input type="button" name="close" value="Enter Site" size="75"
onClick="chkBoxselected()"></center>
</form>
</body>
</html>
ATTN: Admins, this thread can be closed now