View Full Version : resizing browser window
blindingspark
11-13-2004, 08:54 PM
Hello,
I have a window that I want to open with a width of 700 and a height of 550. The resize.window command works fine, but I also want to eliminate the toolbox and the address bar of the browser window. What shall I do?
Thanks in advance.
bfsog
11-13-2004, 09:03 PM
simple
<FORM>
<INPUT type="button" value="open this window" onClick="window.open('http://address.ofyourfile.htm,'mywindow','width=700,height=550')">
</FORM>
blindingspark
11-13-2004, 09:42 PM
Thank you.
But what I want is slightly different. When a user types my address in the address bar, I want the window to shrink and the toolbox and the address bar to disappear without awaiting an input from the user. Is it possible?
martin the 3rd
11-13-2004, 10:55 PM
instead of a button, you could add it to the body tag with an "onload"
-m3
blindingspark
11-13-2004, 11:48 PM
Isn't there a way without opening a new window? Because than I will have to close the previous window. And if I have to, I want it closed by itself but I have learned that it is not possible to close a window without a confirmation box if that window wasn't opened through javascript.
Roy Sinclair
11-16-2004, 09:07 PM
Hello,
I have a window that I want to open with a width of 700 and a height of 550. The resize.window command works fine, but I also want to eliminate the toolbox and the address bar of the browser window. What shall I do?
Thanks in advance.
Local machine? Yes it's possible.
Intranet? Maybe possible.
Internet: No chance, and in the context of the internet what you want to do sounds very suspicious.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.