PDA

View Full Version : Anyway to make a page load at a predetermined size?


lavi557
10-09-2002, 06:38 AM
Hey I've seen several questions on this but I couldn't find an exact answer. I have a page that I need to load at a specfic size (800x600). I was having it load at a pop-up that worked great however there was always the original page still in the background. So I then tried to have it load the pop up and close the original window. However, that would prompt the user to close the original window... which just didn't do. Any solutions Java or non-Java related? Any help would be excellent thanks in advance. (I was wondering if it could load another page and auto close the first one with out a user prompt.)

Thanks again in advance.
Lavi

I know its not practical but its kind of need for an artistic effect. Thanks.

glenngv
10-09-2002, 06:54 AM
http://development.diaryland.com/20020102a.html

Garadon
10-09-2002, 07:02 AM
I use this to resize windows, it is to be put in the window u want resized and not in a pop up. Note it alo vertically centers the window. :cool:

<head>
<script language="javascript1.2">
function sizeup()
{

var x=800-document.body.clientWidth;
var y=600-document.body.clientHeight;
window.resizeBy(x,y);
window.moveTo(screen.width/2-800/2);

}
</script>
</head>
<body onLoad="sizeup();">

lavi557
10-09-2002, 07:33 AM
Seriously thanks. Both options were very helpful.