टेक्स्ट सिलेक्शन नियंत्रित करें
CSS user-select प्रॉपर्टी का उपयोग यह सेट करने के लिए करें कि एलिमेंट का टेक्स्ट चुना जा सकता है या नहीं।
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div { user-select: none; }
</style>
</head>
<body>
<h2>This is demo heading</h2>
<div>This is demo text. You won't be able to select it.</div>
</body>
</html>