HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <input type="text" onselect="myFunction()" value="select me"> <script> function myFunction(){ alert("You have selected some text"); } </script> </body> </html>
OUTPUT
×

Save as Private