-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathinner.html
33 lines (28 loc) · 844 Bytes
/
inner.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="src/XMan.js"></script>
<script>
var inner = x.frame();
window.onload = function () {
inner.setTarget(window.parent);
inner.on('triggerInner', function (data) {
console.log('[LOG triggerInner] type:frames,data: ' + JSON.stringify(data))
});
inner.on('Message', function (data) {
console.log('[LOG Message Inner] type:frames,data: ' + JSON.stringify(data))
});
setTimeout(function () {
inner.emit('triggerOuter', {
from: 'inner'
});
inner.send('this msg from inner');
}, 1000);
}
</script>
</head>
<body>
</body>
</html>