What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-18 04:50:03
how to click outside dom in javascript
// jQuery $(window).click(function() { //Hide the menus if visible }); // JavaScript const getBody = document.querySelector('body'); getBody.addEventListener('click', () => { //Hide the Menus if Visible }); // Stop Propogation on Element you want... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5