<form> <input type="checkbox" id="myCheck" onmouseover="myFunction()" onclick="alert('click event occurred')"> </form>