summaryrefslogtreecommitdiffstats
path: root/content/test/data/dynamic1.html
blob: 07ff33659e27eab2dd6d45e0b947f603a3145345 (plain)
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
<html>
<head>
<title>Test Title</title>
<script type="text/javascript">
function OpenPopup() {
    // Create a new popup window
    var oWnd = window.open('','MyPopupName','width=350,height=300',false);

    // Dynamically generate the HTML content for popup window
    var sHtml =
        '<html>'
            + '<head><title>My Popup Title</title></head>'
            + '<body></body>'
        + '</html>';

    // Push the HTML into that window
    oWnd.document.write(sHtml);

    // Finish
    oWnd.document.close();
}
</script>
</head>
<body>
  <p>This is dynamic1.html</p>
</body>
</html>