chromium/third_party/blink/web_tests/fast/frames/resources/sandboxed-iframe-form-allowed.html

<body onload="document.getElementById('form').submit();">
  <form id="form" action="javascript:parent.postMessage('form allowed', '*')">
    <input name=x value=y type="checkbox" checked="yes"/>
  </form>
</body>