Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to resize a window

Status
Not open for further replies.

TyzA

Programmer
Jan 7, 2002
86
BE
Hi,

Is it possible to set a window's size?
Can you put some javascript in, to do this (in your body onload)?

So, when you open the window, it opens with a specific size (eg. 350x100 pixels)

Hope you guys can help me.

Thanks for any help,

Tijs

 
yea. this will do the trick:
Code:
<html>
<body onLoad='window.resizeTo(350,100)'>
</body>
</html>
hope it helps &quot;Those who dare to fail miserably can achieve greatly.&quot; - Robert F. Kennedy
So true..
 
Thanks,

it works.

Do you also know if it's possible to disable
- the toolbar,
- the statusbar,
- the menubar,
- scrolling,
- resizing,
- set the location

Thanks again,

T.
 
well it would be easiest to set these when you open the window, because some of those cannot be set from the window.
so if you open the window using window.open...heres what it should look like:
Code:
window.open(&quot;dalocation.html&quot;,&quot;namehere&quot;,&quot;toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no&quot;);

hope it helps! &quot;Those who dare to fail miserably can achieve greatly.&quot; - Robert F. Kennedy
So true..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top