views:

112

answers:

1

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 ?

+3  A: 

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

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