Log in

View Full Version : Fixed window size button



MrPinkPanther
20-01-2008, 05:36 PM
If I had a splash page with an enter button and I wanted it so you clicked it and it opened another window at a fixed size (800x600). How would I do it?

d17c
20-01-2008, 10:45 PM
Just did a quick googling and found this:

To open a new window with fixed size, you will need to use javascript for this.
Syntax:
open("URL", "windowName", "width=XXX,height=XXX,resizable=no")

Say you want to open this page, index2.html, to be 400 wide and 300 height and non-resizable, simple add a link similar to following to your main page:

<a href="#" onclick="window.open('index2.html', 'mywindow', 'width=400,height=300,resizable=no');">click here</a>

Want to hide these adverts? Register an account for free!