একটি জাভাস্ক্রিপ্ট ক্লিক ইভেন্ট ট্রিগার করতে, আসুন মাউস হোভারের উদাহরণ দেখি৷
উদাহরণ
লাইভ ডেমো
<!DOCTYPE html>
<html>
<body>
<p>Hover over the button.</p>
<form>
<input type="button" id="test" value="Hover" onmouseover="display()" onclick="alert('click event')">
</form>
<script>
function display() {
document.getElementById("test").click();
}
</script>
</body>
</html>