W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <body> <p onmouseover="getRelatedElement(event)">请将鼠标悬停在此段落上。</p> <script> function getRelatedElement(event) { alert("The cursor just exited the " + event.relatedTarget.tagName + " element."); } </script> </body> </html>