Get Clicked from
You can use event.target for this: JS: // IE does not know about the target attribute. It looks for srcElement // This function will get the event target in a browser-compatible way function getEventTarget(e) { e = e || window.event; return e.target || e.srcElement; } var ul = document.getElementById(‘test’); ul.onclick = function(event) { var target … Read more