Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click outside javascript

// Vanilla js
var ignoreMe = document.getElementById("ignoreMe");
window.addEventListener('mouseup', function(event){
	if (event.target != ignoreMe && event.target.parentNode != ignoreMe){
    // Place your output
    }
});
 
PREVIOUS NEXT
Tagged: #click #javascript
ADD COMMENT
Topic
Name
5+2 =