Selection type Detail Example : Selection « Document « JavaScript DHTML






Selection type Detail 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>

    
      
      








Related examples in the same category

1.Selection type
2.Clear a selection
3.Empty a selection