<html> <head> <title>Evaluating Checkboxes </title> <script> function show() { with (document.forms["frm1"]) { if (c1.checked == true) { alert("C"); } if (o1.checked == true) { alert("C++"); } if (j1.checked == true) { alert("JAVA"); } if (p1.checked == true) { alert("PHP"); } if (s1.checked == true) { alert("JAVASCRIPT"); } } } </script> </head> <body> <form name="frm1" action="" method="post"> <input type="checkbox" name="c1" value="c">C <br> <input type="checkbox" name="o1" value="oop">C++ <br> <input type="checkbox" name="j1" value="java">JAVA <br> <input type="checkbox" name="p1" value="php">PHP <br> <input type="checkbox" name="s1" value="jscript">JAVASCRIPT <br> <input type="reset" name="r1" value="Show" onclick="show()"> </form> </body> </html>