blob: 3971faf4fdfbf91f25737038766872eee9c8e5fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<html>
<head>
<script>
function loaded() {
addEventListener("message", ({ data }) => {
document.getElementById("form").action = data;
document.getElementById("button").click();
}, { once: true });
opener.postMessage("loaded", "*");
}
</script>
</head>
<body onload="loaded();">
<form id="form" method="POST">
<input id="button" type="submit" />
</form>
</body>
</html>
|