JavaScript Reference/Javascript Properties/typeDetail

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

"typeDetail" Example

   <source lang="javascript">
   

<html> <body>

Select a portion of the sample text here. Then click the button

<input type="button"

      value="Click here" 
      onclick="alert(document.selection.typeDetail);">

</body> </html>


     </source>
   
  


"typeDetail" is applied to

   <source lang="javascript">

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

     </source>
   
  


"typeDetail" Syntax and Note

   <source lang="javascript">

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

Value: undefined.

Syntax:

document.selection.typeDetail


     </source>