blob: 6389829c7cc469304c67be8c7aca2609301fd5ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<body>
<script>
var portal = document.createElement("portal");
portal.src = "portal-post-message-before-activate-portal.html";
document.body.appendChild(portal);
portal.onload = () => {
portal.postMessage("message");
portal.activate();
}
</script>
</body>
|