One of the things I\'d like to do in my browser-based application is allow the user to select some text (not in a , just plain ol\' text!), and have my appli
This code works in Safari, IE and Firefox - hope it's of some help
var str = (window.getSelection) ? window.getSelection() : document.selection.createRange(); str = str.text || str; str = str + ''; // the best way to make object a string...