I have an iframe I put on a page using a bookmarklet, I want this iframe to close itself when I navigate to a certain page inside this iframe.
How to do that using JavaScript?
Note: iframe and container page are in different domains.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know you cannot remove the element from the DOM from the iframe’s container unless it’s the same domain if I’m understanding you properly due to cross-domain security policies.
If this were possible you could infiltrate bank sites and all, it’d be a mess.