/ Published in: JavaScript
Support: IE6, Fx2, Opera9, Safari Cross browser getSelection().
Expand |
Embed | Plain Text
function getSelection() { return (!!document.getSelection) ? document.getSelection() : (!!window.getSelection) ? window.getSelection() : document.selection.createRange().text; }
You need to login to post a comment.
