Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element by click

document.addEventListener('click', function(e) {
    e = e || window.event;
    var target = e.target || e.srcElement,
        text = target.textContent || target.innerText;   
}, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #click
ADD COMMENT
Topic
Name
6+5 =