なぜか今まで知らなかった。これは便利。
document.getElementById('hoge').onclick = function(e){ alert( 'id:'+ e.target.id +'\nclass:'+ e.target.className ) }
なぜか今まで知らなかった。これは便利。
document.getElementById('hoge').onclick = function(e){ alert( 'id:'+ e.target.id +'\nclass:'+ e.target.className ) }
トラックバックURL: http://www.0yen-coding.com/mt-tb.cgi/385
コメントする