Tips & Tutorials – HTML & CSS

Unselectable Text In HTML & JS (Very Simple Examples)

Welcome to a quick tutorial on how to make unselectable text in HTML. So you have a not-so-top-secret website that you want to protect? Stop people from highlighting and copying the text? There are 2 common ways to create unselectable text: In CSS, simply add the user-select: none property. In Javascript, document.getElementById(“TARGET”).onselectstart = () => …

Unselectable Text In HTML & JS (Very Simple Examples) Read More »