document.addEventListener('mouseover', addBorder) function addBorder(e) { document.querySelectorAll('*').forEach(el => el.style.border = '') e.target.style.border = '10px solid lime' }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter