JavaScript Reference/Event Handlers Reference/onSelect — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"onSelect" Example
<html>
<body onselect="alert("The user is selecting some body object")">
Try to select a portion of this text
</body>
</html>
"onSelect" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> <input type="text"> |
| |<textarea> |
+----------------+--------------------------------------------------------------+
"onSelect" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |ctrlLeft clientX |
| |clientY offsetX |
| |offsetY returnValue |
| |screenX screenY |
| |srcElement type |
| |x y |
+----------------+--------------------------------------------------------------+
"onSelect" Syntax and Note
Note:
This event fires when highlighting text.