95
rated 0 times
[
102]
[
7]
/ answers: 1 / hits: 75170
/ 13 Years ago, wed, april 13, 2011, 12:00:00
I can use the following code to get selected text:
text=window.getSelection(); /// for Firefox
text=document.selection.createRange().text; /// for IE
But how can I get the selected Html, which includes the text and html tags?
More From » getselection