“Closing” the current iFrame is not possible but you can tell the parent to manipulate the dom and make it invisible.
In IFrame:
parent.closeIFrame();
In parent:
function closeIFrame(){
$('#youriframeid').remove();
}
More Related Contents:
- SecurityError: Blocked a frame with origin from accessing a cross-origin frame
- Can I use multiple versions of jQuery on the same page?
- Get DOM content of cross-domain iframe [duplicate]
- jQuery .ready in a dynamically inserted iframe
- iFrame src change event detection?
- Reload an iframe with jQuery
- How to clear the contents of an iFrame from another iFrame
- how to access iFrame parent page using jquery?
- make iframe height dynamic based on content inside- JQUERY/Javascript
- Add click event to iframe
- How can I detect whether an iframe is loaded?
- Attach an event in a child iframe to a handler in the parent window
- How to move an iFrame in the DOM without losing its state?
- Set content of iframe
- putting html inside an iframe (using javascript)
- Detect click event inside iframe
- how to block website from loading in iframe?
- Nested iframes, AKA Iframe Inception
- Change iframe src by clicking a link
- Check if parent window is iframe or not
- Stop all playing iframe videos on click a link javascript
- Iframe.readyState does not work in chrome
- How to detect a click inside of an iframe (cross-domain)? Aka prevent click fraud
- Insert content into iFrame
- Trigger a button click inside an iframe [duplicate]
- get parent.location.url – iframe – from child to parent
- iframe Auto Adjust Height as content changes
- Fancybox (jQuery) – Passing information from parent to iframe and iframe back to parent
- Iframe inherit from parent
- JQuery Modal Boxes and Iframe