View Full Version : How can i control the window size of my homepage

02-09-2003, 03:14 PM

I have a start page where you have to click ENTER...and then i wanna have a new window with a certain size, that cannot be changed anymore of the visitor...

Do i need a javascript, or can i solve this problem easier?


:thumbsup: thx



02-09-2003, 04:36 PM
/me just a thinks® that ya have to do it with javascript...
n' /me has this just a copied/pasted/credited/saved® from bwuk...

Hi, try this code in between your <head> and </head> tags:

<!-- ;

function popwin(x, y)

// end hide -->

then when you want to open the window use this:

<a href="javascript:popwin('yourpage.htm')">blah blah blah</a>

In the script, just change your heights and widths to whatever you want. Also, changing
status to yes, and scrolling etc, you can determine if the user is going to be able to resize
the window, if the user will have scroll bars, and if the user will have toolbars.

just a goodluck® n' hoping it helps ya...:O)))