Prova questo: (da MSDN )

var t = ((window.getSelection&&window.getSelection()) || (document.getSelection&&document.getSelection()) || (document.selection&&document.selection.createRang e&&document.selection.createRange().text));

ciao