Quiero redirigir a la página principal desde iframe JavaScript

//Will redirect the top most parent Iframe.
window.top.location.href = "http://www.example.com";

//Will redirect the parent iframe.
window.parent.location.href = "http://www.example.com"; 
Friendly Fowl