JavaScript Reference/Javascript Properties/typeDetail

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

"typeDetail" Example

    
<html>
<body>
<p>Select a portion of the sample text here. Then click the button</p>
<input type="button" 
       value="Click here" 
       onclick="alert(document.selection.typeDetail);">
</body>
</html>



"typeDetail" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |selection                                                     |
+----------------+--------------------------------------------------------------+



"typeDetail" Syntax and Note

Note:
Read-only property. 
Reserved for some future use, it returns the name of the selection type. 

Value: undefined.
    
Syntax:
    
document.selection.typeDetail