Author | Topic: IE Window Size | |
---|---|---|
Bruce Anderson | IE Window Size on Wed, 12 Oct 2005 13:52:22 -0500 Is there a way to control the size of the browser window from the HTML file it is loading? I generate the page html code into an oHTML object in response to a submitted form where target=_blank. I would like this particular window to be a certain size. Thanks for suggestions, any and all. | |
Thomas Braun | Re: IE Window Size on Thu, 13 Oct 2005 10:53:37 +0200 Bruce Anderson wrote: > Is there a way to control the size of the browser window from the HTML file > it is loading? I generate the page html code into an oHTML object in > response to a submitted form where target=_blank. I would like this > particular window to be a certain size. You can control the size of the window by using jscript, but IMHO this is not a good idea for various reasons: You don't know the screen resolution of the users machine. This may not work with every browser. Different browsers tend to render the same html differently, so there is a possibility that ugly scrollbars show up just because the content is a few pixels wider than your desired window size. I hate it if the web designer tries to take control over my environment - it is my machine, my browser and it is me who controls how large and where the browser windows appear This gets even more annoying if the "designer" decides to create the window with a fixed frame instead of a variable one.... Ah - before I forget - here is a link that shows how to open a new window with a defined size at a defined position: http://www.netmechanic.com/news/vol4/javascript_no7.htm HTH & regards Thomas | |
Phil Ide | Re: IE Window Size on Thu, 13 Oct 2005 09:59:13 +0100 Bruce, > Is there a way to control the size of the browser window from the HTML file > it is loading? I generate the page html code into an oHTML object in > response to a submitted form where target=_blank. I would like this > particular window to be a certain size. Thanks for suggestions, any and > all. Yup, insert some script in the body: <script> window.resizeBy(iX,iY); pixels </script> Regards, Phil Ide ******************************************* * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * * --------------------------------------- * * www.xodc.org.uk - openSource Dev-Center * ******************************************* Everything's falling into place - on top of me. | |
Phil Ide | Re: IE Window Size on Thu, 13 Oct 2005 10:00:36 +0100 Bruce Anderson, > Is there a way to control the size of the browser window from the HTML file > it is loading? I generate the page html code into an oHTML object in > response to a submitted form where target=_blank. I would like this > particular window to be a certain size. Thanks for suggestions, any and > all. Also, window.resizeTo(iWidth,iHeight); Regards, Phil Ide ******************************************* * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * * --------------------------------------- * * www.xodc.org.uk - openSource Dev-Center * ******************************************* If at first you don't succeed, cry. |