SyntaxFix
Write A Post
Hire A Developer
Questions
Get highlighted text this way:
window.getSelection().toString()
and of course a special treatment for ie:
document.selection.createRange().htmlText