Javascript DOM HTML Input Checkbox handle click event
<!DOCTYPE html> <html> <body> <form> <input type="checkbox" id="myCheck" onmouseover="myFunction()" onclick="display()"> </form>//from w w w.j av a 2s . c om <p id="demo"></p> <script> function display() { document.getElementById("demo").innerHTML = "click event occured"; } function myFunction() { document.getElementById("myCheck").click(); } </script> </body> </html>