JavaScript Reference/Event Handlers Reference/onSelectionChange
Содержание
"onSelectionChange" Example
<source lang="javascript">
<head> <script language="JavaScript" for=document event=onselectionchange>
alert("The selection has changed");
</script> </head> <body>
Copy this text into the textarea element below.
<form> <textarea cols=30 contenteditable=true>Click here</textarea> </form> </body>
</source>
"onSelectionChange" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+
</source>
"onSelectionChange" Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |ctrlLeft offsetX | | |offsetY returnValue | | |shiftLeft srcElement | | |screenX screenY | | |type x | | |y | +----------------+--------------------------------------------------------------+
</source>
"onSelectionChange" Syntax and Note
<source lang="javascript">
Note:
This event fires when a document"s selection state is changed. This event is also triggered by the element.
</source>