Forum Moderators: open
When I open this page I want to automatically resize to about width="420" height="350" and open another webpage in that frame. I don't need a status bar or address bar. Only thing that I need to show is the X at the top so after a movie is done, they can close the window.
I searched for hours for this code and finally found it. I forgot to back it up and I did a reload on my ftp and overwrote it.
This code originally showed a frames page that looked was one frame on top of the the other but I cut it down to just one frame. The frame automatically resized and centered itself to the center of the screen.
Does any one know how to do this here?
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function resizeit(width, height){
var s_width = screen.width;
var s_height = screen.height;
window.parent.resizeTo(width,height);
window.parent.moveTo((s_width-width)/2,(s_height-height)/2);
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="resizeit(470,700)">
</BODY>
</HTML>
The problem I'm having with this is I can't figure out how to make this code not show, toolbars, menubars, and the status bar.
If anyone can shed some light here, please please do.
function resizeit(w,h){resizeTo(w,h); moveTo((screen.width-w)/2,(screen.height-h)/2)}
The absence or presence of chrome (tool bar, status bar, etc.) is determined by the window.open() function. It can't be adjusted once the window has already been created.
Kaled.