blob: ebdffb990fb55044485e33e7df1a2cf1496329d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test page for always sending a message to its opener through postMessage</title>
</head>
<body>
<script>
window.onload = () => {
// The target origin is coming from the query string.
let targetOrigin = window.location.search.substring(1);
window.opener.postMessage("Message", targetOrigin);
};
</script>
</body>
</html>
|