问题
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?
Thanks!
回答1:
I think you're looking for target="_top"
<form action".." target="_top">
</form>
来源:https://stackoverflow.com/questions/1535026/php-post-an-html-form-from-inside-an-iframe-and-redirect-parent