<html>
<head>
<title>Abakada HTML Demo: input type=radio 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 radiobutton option has been selected." +
"<br>The script contines further processing only if <b>checked</b> is true.";
radio = document.getElementById ( "radio" );
msg = document.getElementById ( "msg" );
if ( radio.checked ) msg.innerHTML = msgText;
}
function zapMsg ( ) {
msg.innerHTML = "";
}
//-->
</script>
</head>
<body>
<div class="header"><h2>Abakada HTML Demo: <b>input type=radio checked</b> Attribute</h2></div>
<hr size=1 width=92%>
<center>
<form onreset="zapMsg( )">
<p><input id="radio" name="radio" type=radio onclick="chkThis ( )">
<label for="radio">Click to learn more about radiobuttons</label>
<input type=reset></p>
<div id="msg"></div>
</form>
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>