Mega Code Archive

 
Categories / JavaScript Reference / Event Handlers Reference
 

OnSelectionChange Example

<head> <script language="JavaScript" for=document event=onselectionchange>    alert('The selection has changed'); </script> </head> <body> <p>Copy this text into the textarea element below.</p> <form> <textarea cols=30 contenteditable=true>Click here</textarea> </form> </body>