summaryrefslogtreecommitdiff
path: root/deps/wse/priv/frame_demo.html
blob: 3519ba8a1e5a6d0c1b919d1d6b25f2266e644579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<title>Frame demo page</title>

<script src='ej.js'></script>
<script src='wse.js'></script>
<script>
<!-- port numbers used main=1233, frame1=1234, frame2=1235 -->
window.onload = function() {
      if (Wse.open("ws://"+(location.hostname||"localhost")+":1233/websession")) {
        Wse.id = 'w0';
        Wse.start('wse_frame_demo', 'run', ["i0"]);
    }
}
</script>
</head>

<body>
<iframe id="f1" src="frame1.html" width=640 height=180></iframe>
<iframe id="f2" src="frame2.html" width=640 height=180></iframe>
<div id="i0"></div>
</body>
</html>