0

I'm trying to get the contents of an <iframe> from another page.

The other page is a different website; I'm logged into that website and I get its contents and store it in the <iframe>.

How do I get the contents of that <iframe> into the current window ?

1

1 Answer 1

3

The short answer: you can not do it. Browsers restrict the interaction between content from different websites using the same origin policy.

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

2 Comments

I guess you meant can NOT do it? As you explain why it won't work in the next sentence.
Nice catch. Yes, I left out the not part :-)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.