<html>
<head>
<title>Abakada HTML Demo: input type=checkbox checked Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="JavaScript">
<!--
function chkThis ( ) {
var msgText = "The <b>checked</b> attribute is used to detect if a checkbox option has been selected." +
"<br>The script contines further processing only if <b>checked</b> is true.";
chkBox = document.getElementById ( "chkBox" );
msg = document.getElementById ( "msg" );
if ( chkBox.checked ) msg.innerHTML = msgText;
else msg.innerHTML = "";
}
//-->
</script>
</head>
<body>
<div class="header"><h2>Abakada HTML Demo: <b>input type=checkbox checked</b> Attribute</h2></div>
<hr size=1 width=92%>
<center>
<form>
<p><input id="chkBox" name="chkBox" type=checkbox onclick="chkThis ( )">
<label for="chkBox">Check to learn more about checkboxes</label></p>
<div id="msg"></div>
</form>
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>