zulip/frontend_tests/casperjs/tests/site/popup.html

20 lines
655 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CasperJS test popup</title>
</head>
<a href="." class="close">close</a>
<body>
<a href="/tests/site/form.html" target="_blank">new window</a>
<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>