I have a form inside of an iframe. When I click a button on the form, I want the content of the outer containing page (NOT the content of the iframe) to be replace with the specified url.
If the form were not inside of an iframe this works ...
<input type='button' name='Next' value='Next Page'
onclick='window.location.replace("http://www.facebook.com");' />
The same code, inside of an iframe, replaces only the content of the iframe, not the content of the entire containing page.
How do I do it from inside of an iframe?