Event triggered when text is selected in text box onselect

From , 5 Years ago, written in JavaScript, viewed 86 times.
URL https://pastebin.vip/view/e1dc4bf1
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. function myFunction()
  6. {
  7. alert("You have selected some text!");
  8. }
  9. </script>
  10. </head>
  11. <body>
  12.  
  13. Some text: <input type="text" value="Hello world!" onselect="myFunction()">
  14.  
  15. </body>
  16. </html>
  17.  
  18. //javascript/7969

Reply to "Event triggered when text is selected in text box onselect"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website