1.11M Members

getSelection() remove html and replace with text

 
0
 

Hi all,

how can we replace the getSelection HTML in an iframe?

I want to getSelection() and the replace selection's html with simple text.

 
0
 

found it:

self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML;
Question Self-Answered as of 2 Years Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article