In comp.lang.javascript message <11**********************@n39g2000hsh.go
oglegroups.com>, Sat, 15 Sep 2007 10:33:48, Bill H <bi**@ts1000.us>
posted:
>When I do website design I have my screen (on a PC) set for 1600 x
1200 or greater resolution so that I can have as many windows open as
I need and not have to flip between them. The issue I have is the the
IE7 window is never a consistant size because I resize it as I am
using it.
I would like to be able to open up a blank IE 7 window and have it set
to a specific size each time so that I can see the pages I am working
on in the same window size others use.
I know you can use JavaScript to set the size of a window that you
open, but I would like to be able to set the size of the browser to a
specific size. My thought was to create a blank page on my desktop
that contained Javascript to size the window when I open it, but since
IE7 doesn't like running any local Javascript without prompting you to
do it I am not sure how I could do this.
Any thoughts on how this can be done?
I have a local Home Page which I use as a "favourites"; being a Page, I
can use it in several browsers, format it, trivially copy it to another
machine, etc.
It has
<BODY onLoad="/* window.resizeTo(640, window.screen.height*0.85) */">
in which the comment marks are recent (there's now a Button at the top
to do the resize, as OnLoad is a bit too automatic for something I now
often use). It also has quasi-links to set other favoured sizes.
In IE6 and IE7, from any other ordinary page, I can just do Home
(Button) Back to get to standard size, without prompts. I don't recall
doing anything to the IE setup to make this possible.
FireFox would not resize OnLoad, but does by button; Opera does not.
I've not needed to investigate the matter further.
Button :
<div style="text-align:center;"><input type=button value=ReSize
onClick="window.resizeTo(640, window.screen.height*0.85)"></div>
Links :
<p style="text-align:center;">
<a href="javascript
:resizeTo(640,480)">640×480</a|
<a href="javascript
:resizeTo(800,600)">800×600</a|
<a href="javascript
:resizeTo(1024,768)">1024×76 8</a|
<a href="javascript
:resizeTo(1280,1024)">1280×1 024</a></p>
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.