<html>
<script type="text/javascript">
function check(){
var x = document.getElementById("check1").checked;
if(x==true){
alert("Hello Guest");
}
else{
alert("Please check it First");
}
}
</script>
<body>
<form name="f1">
<input type="checkbox" id="check1">Do you like Rakib?
<input type="button" onclick="check()" value="Hit it">
</form>
</body>
</html>
Tuesday, February 12, 2013
Play with HTML checkbox by Java Script (JS)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment