blob: 2478c429acc06cb8a6d0ef03f13deb36d1ef643b [file] [log] [blame]
<html>
<head>
<title>window open</title>
<script type="text/javascript">
var new_window;
function OnClick() {
// Open popup to the url from the given query string.
var url = window.location.search.substring(1);
if (!new_window) {
new_window = window.open(url, "_blank",
"left=10, top=10, height=250, width=250");
}
}
function OnKeyPress() {
var char_code = String.fromCharCode(event.keyCode);
if (char_code == 'c') {
new_window.close();
}
}
</script>
</head>
<body onkeypress="OnKeyPress();" onclick="OnClick();">
ChromeFrame full tab mode window open popup test
</body>
</html>