Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element by click

window.onclick = e => {
    console.log(e.target.innerText);
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #click
ADD COMMENT
Topic
Name
9+2 =