<p>Is there any way instead of a JS hack where I can post from an iframe to another page outside the iframe?</p>

<p>the iframe is posting data to a 3rd party and then just responding back with a URL which is the redirection URl thus we cannot set the form target. We are PCI compliant and thus we cannot use <code>window.parent.location = url;</code></p>

```
<form>
```
accepts a target parameter, e.g. target="_parent"