<script> | |
window.addEventListener("message", function(e) { | |
document.getElementById('form').submit(); | |
}, false); | |
</script> | |
<body> | |
<form id="form" action="javascript:window.top.allowedFormSubmitted();"> | |
<input name=x value=y type="checkbox" checked="yes"/> | |
</form> | |
</body> |