multiple-popups.html 609 Bytes
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>CasperJS test popup</title>
    </head>
    <body>
        <a class="openpopup" href="#" onclick="javascript: window.open('close.html', 'close'); return false;">new popup</a>
        <script>
            //var onclick=function(){   
                //alert("1");
                //window.open("http://localhost:54321/tests/site/close.html");
                //window.open("close.html", 'close');
            //    return false;
            //}
        </script>
    </body>
</html>