Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

element clicked js

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 #clicked #js
ADD COMMENT
Topic
Name
6+7 =