Java Script Check Box Example
Java Script Check Box Example
<html>
<head>
<title>
using check box.
</title>
<script language=JavaScript>
function check1clicked()
{
var str=""
if(document.form1.check1.checked==true)
{
str+="Learn With Fun"
}
if(document.form1.check2.checked==true)
str+="http://satyarahulraj.blogspot.in"
document.form1.textfield.value=str
}
</script>
</head>
<body>
<center>
<h1>using check boxes</h1>
<form Name=form1>
<input type = checkbox name=check1 onclick="check1clicked()">please click
<input type = checkbox name=check2 onclick="check1clicked()">please click on me
<br><input type=textarea name="textfield" size=30>
</form>
</center>
</body>
</html>
Out Put
0 comments :