document event listener javascript code example Example: javascript eventlistener document.addEventListener('click', () => { });