popup.html
608 Bytes
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CasperJS test popup</title>
</head>
<body>
<a href="/tests/site/redirect.html" target="form">new window</a>
<a href="#" class="close", onclick="w && w.close();return false">close</a>
<script>
var w;
setTimeout(function() {
w = window.open("index.html",
"popup", "menubar=no, status=no, scrollbars=no, menubar=no, width=400, height=300");
}, 500);
</script>
</body>
</html>