HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Select some characters in the Input Field</p> <input type="email" onselect="myFunction()" value="John Doe"> <script> function myFunction() { alert("Some text is selected"); } </script> </body> </html>
OUTPUT
×

Save as Private