|
|
Safari 3 fullscreen pop up window problemI’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? |

Leave a Reply