PDA

View Full Version : iframe stop redirection



Lakelyn
05-16-2007, 09:00 PM
Hello.

I have a problem. I have an iframe and when visiting certain websites using the iframe, the remote site will redirect to itself.

I was wondering if there was any work-around to stop the remote site from redirecting. I am completely loss on this one. I am pretty new to Javascript, though.

glenngv
05-16-2007, 09:08 PM
For security reasons, Javascript cannot access pages in another domain.

Lakelyn
05-16-2007, 09:17 PM
For security reasons, Javascript cannot access pages in another domain.
Yes. I understand that much and I am not asking to do that. But I was wondering if there was some way to manipulate the iframe to stop it.

glenngv
05-16-2007, 09:24 PM
You need Javascript to manipulate the page in an iframe. But you can only do that to your own pages.