<a id="a" href="javascript:postMessage('FAIL', '*');" target="target"></a>
<script>
a.click();
setTimeout(function() {
opener.postMessage("PASS", "*");
}, 0);
</script>
<a id="a" href="javascript:postMessage('FAIL', '*');" target="target"></a>
<script>
a.click();
setTimeout(function() {
opener.postMessage("PASS", "*");
}, 0);
</script>