4

I know how to run JavaScript in the top level document using Run some Javascript in Flutter Webview, but I am not sure how I would write JavaScript to interact with iframes within the document.

Can somebody explain whether it's possible, and, if so, can you attach an example?

3
  • Is this helpful to you? Control iframe content with javascript/html Commented Feb 8, 2021 at 9:54
  • That works, but only on iframes from the same origin. I want to also interact with iframes from different origins. Commented Feb 8, 2021 at 15:30
  • You can only achieve that due to the cross-domain policy. stackoverflow.com/a/9393545/10999353 Commented Feb 9, 2021 at 1:51

1 Answer 1

0

*You can only achieve that if you own both sites due to the cross-domain policy. https://stackoverflow.com/a/9393545/10999353

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.