I'm trying to change the content of an element from withing an iframe.
If I use this:
then the content of the iframe is replaced correctly.Code:$('body').replaceWith("hi");
However when I try to access the parent document it doesn't work. I've been using this code:
What is the correct way to do this? I've tried many tutorials online but nothing seems to be working.Code:$('body', window.parent.document).replaceWith("hi");



Reply With Quote

Bookmarks