Click to See Complete Forum and Search --> : resizing a window?


isingsilence
09-04-2003, 11:22 PM
Alright, I'm trying to make my window a certain size, but I don't want all the junk on top. (back, home, favorites ect.)

<SCRIPT>
window.resizeTo(600,800);
</SCRIPT>

I've got this script right here but it still leave the "junk" on top. I want it to be sort of like this- www.underoath777.com (if you click on the image a window will pop up and it'll just have an x on it.) I'm an idiot, so anyone have anything for me? Thanks so much!!

karayan
09-04-2003, 11:48 PM
You have to open a new window and define the properties of the new window to have no chrome (= no toolbars, etc.). Something like:

var winparams = 'dependent=yes,location=no,menubar=no,resizable=yes,screenX=1,screenY=1,titlebar=no,scrollbars=yes,t oolbar=no,height=550,width=750';

newWin = window.open("fileToOpen.htm","windowName", winparams);


where fileToOpen.htm is the HTML file you want to open into the new window.

Your example website uses a function they have defined to open the new window. Pretty neat, actually.