...

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



C2KC
02-09-2003, 04:14 PM
:confused:

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?

:confused:

:thumbsup: thx

Tom

PHYSIOPOWER

justame
02-09-2003, 05:36 PM
c2k...
/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:

<SCRIPT LANGUAGE="JavaScript">
<!-- ;

function popwin(x, y)
{
window.open(x,y,'status=no,scrollbars=no,resizable=no,toolbars=no,width=450,height=200');
}

// end hide -->
</SCRIPT>

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)))



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum