So I know how to select a text with the mouse and show that selection in a div. But how can I do the same thing when I have an iframe which shows a page on the same domain.
Can’t figure it out. I have implemented the solution found here.
Any ideas which could help me out or links to other SO questions that addressed this?
Thanx!
You can see here how to get the references to
windowanddocumentfor theiframe(or vice versa, the references to the main document from inside theiframe); from there, it should be easy to do anything you’re currently doing in the main document.