|
|
|
// Disable text selection (not fully reliable) function disableSelection(element) { element.setAttribute('unselectable', 'on'); element.style.userSelect = 'none'; element.style.MozUserSelect = 'none'; element.style.webkitUserSelect = 'none'; } // Apply to the entire document body document.addEventListener('DOMContentLoaded', function() { disableSelection(document.body); });
|
|
|