Select a portion of the sample text here. Then click the button value="Click here" onclick="alert(document.selection.typeDetail);">
Select a portion of the sample text here. Then click the button