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.

found it:

self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.