Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:45:01 +02:00
commit f4a01d6a69
11601 changed files with 4206660 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Iframe Communication</title>
</head>
<body>
<iframe name="frame" width="1000" height="1000"></iframe>
<script>
window.open("iframe.html", "frame");
const windowProperties = {
title: "Test Window",
headerMessage: "Header Message",
icon: "image.png",
resizable: true,
size: {width: 500, height: 600},
minSize: {width: 500, height: 600},
position: {x: 50, y: 200},
htmlWindowRef: undefined,
htmlContentRef: undefined,
windowRef: undefined,
headerActions: [],
windowType: undefined,
dialog: {open: false},
};
window.onload = () => {
const frame = document.querySelector("iframe");
frame.contentWindow.postMessage(windowProperties, location.origin); // Iframe Origin
};
window.addEventListener('message', (event) => {
console.log(event);
}, false);
</script>
</body>
</html>