how to make some code happen when clicking somewhere code example Example: function click anywhere javascript document.body.addEventListener('click', fn, true);