#main
要素にマウスカーソルが乗ったり外れたりするごとにログ出力します。
document.querySelector('#main').addEventListener("mouseout", function(){console.log('out')});
document.querySelector('#main').addEventListener("mouseover", function(){console.log('over')});
#main
要素にマウスカーソルが乗ったり外れたりするごとにログ出力します。
document.querySelector('#main').addEventListener("mouseout", function(){console.log('out')});
document.querySelector('#main').addEventListener("mouseover", function(){console.log('over')});