Redirect parent window from an iframe action
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.
window.top.location.href = "http://example.com";
window.top
refers to the window object of the page at the top of the frames hierarchy.