Select text from iframe with mouse and display selection in div

So, I know how to select text with the mouse and show that the selection is in a div. But how can I do the same when I have an iframe that displays a page in the same domain.

I can not understand. I implemented the solution found here .

Any ideas that could help me or contact other SO questions that related to this?

Thanx!

+3
source share
1 answer

You can see here how to get links to windowand documentfor iframe(or vice versa, links to the main document from iframe); from there, it should be easy to do everything you do in the main document.

+3

All Articles