7 Replies Latest reply: Jul 19, 2012 12:24 PM by Neville Hillyer
mickeyfromny Level 1 Level 1 (0 points)

There is apparently a bug in Safari whereby the window.open request height value is not handled correctly. Even though no browser bars are requested, additional vertical space is factored into the new window height. The amount of space added seems to be determined by which bars are enabled in the parent browser window.


This can be easily tested on Windows by comparing the results of the following simple script on various browsers (IE, Chrome, Firefox, Safari).




<!DOCTYPE html>
<script type="text/javascript">
function open_win()
window.open("http://www.w3schools.com", "test", "height=200");

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