PDA

View Full Version : getting user selected html text (on all browsers))



flashgod
12-23-2008, 02:55 AM
Has anyone created a method for getting user selected html text?

To receive the rendered text, getSelection(), and selection.createRange().text, do the job on all browsers, but what about html text? For IE, selection.createRange().htmlText works, but since that isn't supported on other browsers, its going to need some creativity.

Thanks