Wednesday, April 6, 2011

Getting contents of iframe

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 ?

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

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

0 comments:

Post a Comment