f



Getting HTML from a users text selection

Hi guys,

Using the following function

function class_getSelection(){
     if (browser.isIE5up) {
         return EpozElement.contentWindow.document.selection;
     } else {
         return EpozElement.contentWindow.window.getSelection();
     };
}

I can get the text that a user has selected on a page.

However it parses out all the html and just returns the selection as 
plain text. Is there any way to return the users selection including any 
HTML tags.
0
Andrew
9/14/2004 11:35:29 AM
comp.lang.javascript 38370 articles. 2 followers. javascript4 (1315) is leader. Post Follow

0 Replies
401 Views

Similar Articles

[PageSpeed] 44

Reply: