Posted on

function getSelText(){
if (window.getSelection) {
return window.getSelection();
} else if (document.getSelection) {
return document.getSelection();
} else if (document.selection) {
return document.selection.createRange().text;
}

return "";
}

Leave a Reply

Your email address will not be published. Required fields are marked *