开发者

Control size and screen location of an existing instance of Internet Explorer

开发者 https://www.devze.com 2023-02-06 18:15 出处:网络
I need to be able to control the browser size and location for my site once it opens in the browser. I\'m assuming I can do this via javascript in the body load event.

I need to be able to control the browser size and location for my site once it opens in the browser.

I'm assuming I can do this via javascript in the body load event.

I've tried this

var ie;
ie = new ActiveXObjec开发者_JS百科t("InternetExplorer.Application");
ie.Top = 1;
ie.Left = 1;

and it does nothing even though

alert(ie.Top);
alert(ie.Left);

returns 1 for each property.


You cannot do positioning to any docked Element. Window in full mode cannot be moved. Using javascript, you can open another window and control the position and size of child.

0

精彩评论

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

关注公众号