child-page.html 589 Bytes
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>CasperJS test child page</title>
    </head>
    <a href="." class="close">close</a>
    <body>
        <script>
        var w = window.open("http://localhost:54321/tests/site/index.html",
            "popup", "menubar=no, status=no, scrollbars=no, menubar=no, width=400, height=300");
        document.querySelector('a').onclick = function onclick(evt) {
            evt.preventDefault();
            w.close();
        };
        </script>
    </body>
</html>