Safari 3 fullscreen pop up window problem
I’m not sure how serious it is, but this may affect many sites especially flash websites.
In safari 3 when you call window.open(“url.html”,”window_name”,”width=”+screen.availWidth+”,height=”+screen.availHeight), being different from other browsers, safari sets the inner document width and height to the screen availWidth and availHeight. This means, the popup window is actually bigger than availWidth and availHeight because there is a title bar at the top of the window. There’ll be some content hidden outside the screen for Mac and some hidden underneath the task bar for PC.
To avoid this problem, write a window.resize(screen.availWidth, screen.availHeight) in the popped up page.
Will Safari 3 replace IE?
…becoming javascript’s public enemy No.1?
p.s. An interesting thing I found out from my mistake. If you call window.moveTo(x,y) supplying x,y with something not numeric (NaN, null, undefined), the window will disappear. Interesting? Not?
Well I don´t think that safari will ever replace IE. Microsoft is improving it very well as I saw at the beta version of IE8, but they still have a long way to close the gap on FF. I really love to work with safari and love its macintosh-style, but it isn´t just as commen as the other browsers.
@Flug,
It was just a joke. I was trying to say that if safari coninues like this, soon all developers will start to hate safari more than IE.