开发者

window.resizeTo works differently in IE alone

window.resizeTo will work fine until the present window (yet to be resized) is far away from task bar.If it is near to task bar it compresses the size.I hope im clear.It is observed in IE. To explain it clearly go to :http://www.w3schools.com/js/tryit.asp?filename=try_dom_window_resizeto give size as some 400,550 a开发者_C百科nd minimize the window and move it below task bar . Now click Resize window It will be resized to a lower size. I observed in IE only


It's a security feature so that web developers don't do bad things, like moving windows off screen.

Due to this and the fact that it can be deactivated in the user configuration of most browsers, you should not rely on resizeTo in the first place, and make your web site/web app work without using it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜