window-open-features-parsing.html [plain text]
<html><head><script>
function test() {
var sFeatures = " ,=\twidth == = = 0200px|0=height 400,1width=400,left=nO \ntoolBAR=yeS,resizable=yess, \rstatus= ,";
var w = window.open("resources/popup200x100.html", undefined, sFeatures);
w.focus();
}
</script></head>
<body>
<p>This test checks whether parsing of the 'features' argument to window.open matches
Win IE's behavior, except in the case of "resizable," which should always be true.</p>
<p>The link below should open a window with the following attributes:</p>
<ul>
<li> A WebView exactly 200x100, such that you can see a red 1 pixel border along each edge of the WebView.
<li> A window aligned to the left hand side of the screen.
<li> Toolbar visible.
<li> Statusbar visible.
<li> Resizable.
</ul>
<a href="" onclick="test(); return false;">Click to test</a>
<hr>
<p>The link below should open a window with the following attributes:</p>
<ul>
<li>A window whose size matches what you would get from file->New Window.</li>
<li>A window whose positioning matches what you would get from file->New Window.</li>
<li>Statusbar visible.</li>
<li>Resizable.</li>
</ul>
<a href="" onclick='window.open("", "", "status,resizable");'>Click to test</a>
</body></html>