window.top.location.href = "http://www.example.com";
Will redirect the top most parent Iframe.
window.parent.location.href = "http://www.example.com";
Will redirect the parent iframe.
More Related Contents:
- Capture iframe load complete event
- How to load up CSS files using Javascript?
- jQuery document.createElement equivalent?
- How to access parent Iframe from JavaScript
- Getting around X-Frame-Options DENY in a Chrome extension?
- How to open a PDF file in an ?
- Safari 3rd party cookie iframe trick no longer working?
- Change :hover CSS properties with JavaScript
- How to pick element inside iframe using document.getElementById
- Creating an iframe with given HTML dynamically
- Detect iFrame embedding in Javascript
- How do I implement Cross Domain URL Access from an Iframe using Javascript?
- jQuery iframe load() event?
- Why does appending a to a dynamically created seem to run the script in the parent page?
- Javascript Iframe innerHTML
- Embed an External Page Without an Iframe?
- How can two instances of a userscript communicate between frames?
- Is there a way to change context to iframe in javascript console?
- Stop all playing iframe videos on click a link javascript
- How to synchronize scrolling positions for several iframes
- how to resolve iframe cross domain issue [duplicate]
- AngularJS ng-src inside of iframe
- Detect X-Frame-Options
- Resize external website content to fit iFrame width
- Alternative to DOMNodeInserted
- Fancybox (jQuery) – Passing information from parent to iframe and iframe back to parent
- Reload an IFRAME without adding to the history
- iframe not reading cookies in Chrome
- How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame?
- iframe inside angular2 component, Property ‘contentWindow’ does not exist on type ‘HTMLElement’