Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-27-2011, 05:27 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
close iframe that's in another domain
I'm using lytebox to open an iframe, but the iframe url is in another domain that the parent window.
the $lb.end(); starts lytebox scripts in parent window which close the iframe and modify all the css stuff.
That works when my iframe url is in the same domain. But when it's in another domain, that does'nt work.
Can anyone tells me how to do that ? Starting the $lb.end() function of the parent window ?
11-27-2011, 06:00 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,573 Times in 2,551 Posts
<iframe>'s which display content from different domains have security measures in place to prevent all sorts of evil consequences.
So I don't think that what you want is possible.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.