JavaScript Reference/Javascript Objects/selection — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
(нет различий)

Версия 18:30, 25 мая 2010

"selection" Event handlers

+----------------+--------------------------------------------------------------+
| Event handlers:|onTimeError                                                   |
+----------------+--------------------------------------------------------------+



"selection" Example

    
<html>
<body>
<body onclick="alert(document.selection.type);">
<p>Select this text</p></body>
</body>
</html>



"selection" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |clear                           createRange                   |
| Methods        |empty                                                         |
+----------------+--------------------------------------------------------------+



"selection" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |type                            typeDetail                    |
+----------------+--------------------------------------------------------------+



"selection" Syntax and Note

Note:
Represents a highlighted area in the document.
    
Syntax:
    
document.selection.memberName