마우스 포인터가 요소 밖으로 이동할 때 onmouseout 속성 트리거. 다음 코드를 시도하여 onmouseout을 구현할 수 있습니다. 속성 -
예시
<!DOCTYPE html>
<html>
<body>
<h3 id = "myid" onmouseout = "mouseOut()">
This is demo heading.
</h3>
<p>Click above and then release.</p>
<script>
function mouseOut() {
document.getElementById("myid").style.color = "red";
}
</script>
</body>
</html>