summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/forms/form-submission-0/resources/getactionurl-iframe.html
blob: 116371a995b1477d15d48a1d8f8ca2a0d6d07e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<body>
<script>
  const form = document.createElement('form');
  document.body.appendChild(form);
  form.action = `data:text/html,
 <!DOCTYPE html>
 <body>
 <script>
   window.top.postMessage('PASS', '*');
 <\/script>
 `;
  form.submit();
</script>