R – PHP + POST an HTML form from inside an iFrame and redirect parent


I'm wondering if it's possible to do the following: have an iFrame inside of an HTML page. Inside the iFrame, I have a 'Pay with PayPal' button. When that button is clicked, and thus the HTML form is submitted to PayPal, I want the parent page to redirect to PayPal, rather than just the iFrame. Is this possible?


Best Solution

I think you're looking for target="_top"

<form action".." target="_top">