[webkit-help] In webkit browsers window.open() does not respect dimensions specified

John Lips lips.john at gmail.com
Sun Apr 15 21:50:37 PDT 2012


The following html code block will open a small window of the specified
dimensions in chromium & seamonkey... However, in webkit browsers the
results vary. In jumanji and dwb the page is opened in a new tab. In
Epiphany and surf the page is opened in a separate window, but the window
does not respect the specified dims, instead it is opened maximized.

<html>
<head>
<script type="text/javascript">
function open_win()
{
newwindow=window.open("http://www.w3schools.com
",'name','height=250,width=216');
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>

</html>

The behavior exibited by chromium/seamonkey is desirable from my
perspective because this provides a useful method for creating popups. Is
the behavior exibited by the webkit browsers by design? If so why and how
then should I create a pop up window of custom dimensions? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120415/5735d1f3/attachment.html>


More information about the webkit-help mailing list