<textarea onselect="message();">onselect-onselect-onselect-onselect</textarea>
        textarea{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            border: 2px solid #262626;
            font-family: Verdana;
        }
        function message() {
            alert("The onselect property is running")
        }
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.