Need Javascript Help

coolv1994

Member
Messages
508
Reaction score
0
Points
16
Does anyone know how to make a window automatically resize when opened?
 

MasterMax1313

New Member
Messages
84
Reaction score
0
Points
0
HTML:
<script type="text/javascript">
function resize()
{
window.resizeTo(385,147);
}
</script>

<body onload="resize()">

that should work
 

coolv1994

Member
Messages
508
Reaction score
0
Points
16
Ok thanks heres 10 credits =)
Edit:
Also is there any way to make the toolbars not show?
 
Last edited:

MasterMax1313

New Member
Messages
84
Reaction score
0
Points
0
there's a little info on that for opening a popup window with that here

self.menubar.visible=false;
self.toolbar.visible=false;
self.locationbar.visible=false;
self.personalbar.visible=false;
self.scrollbars.visible=false;
self.statusbar.visible=false;

that will probably help (reference)

keep in mind that you may run into problems if you are trying to do this within a single window, and the user is using tabbed browsing. If you are doing it for a popup, I'd recommend the first method (from what I've seen in my searches).
 
Top