PDA

View Full Version : open new window with certain size


C2KC
03-21-2003, 05:52 PM
Hi everybody,

my idea would be that one the first page (index.htm) is a button, which you press to get to the mainpage (main.htm). And this Mainpage should be opened in a new window that has a certain size...scrollbar...no menubar, no statusbar...
Could i realize this ?
Can anybody, help me...maybe in a explainations for me as a newbie...

an the other thing...can i colour the scrollbars ?

thx in advance

Tom

Vladdy
03-21-2003, 05:54 PM
... and all those people who have pop-up blockers installed will just leave your site... and rightfully so...;)

C2KC
03-21-2003, 05:56 PM
no problem because, this is a private site and only some people can enter...and they will know this

maybe you can help me

Vladdy
03-21-2003, 05:59 PM
Sorry, I don't do pop-ups...

kansel
03-21-2003, 06:23 PM
ANYWAY....

The code you are looking for is this:

window.open('main.html','popup','width=640,height=480,scrollbars');

If opening from a button on index.html, use something like this

<input type="button" value="Enter" onclick="window.open('main.html','popup','width=640,height=480,scrollbars');">

This will pop main.html into a window with scrollbars but nothing else sized 640x480.