Click to See Complete Forum and Search --> : set the popupwindos-size equal to the screen-resolution


zepp
04-07-2004, 12:27 PM
Hi folks!

I've a problem:
I want that the size of my website fits to the resolution of the screen. Is there a special function?
my Website starts in a Popup-window with the function

window.open(url blah blah.....);

is it possible to set the height and width over a var. ?
like:

window.open(....."width = VarA, height = VarB")
where VarA and B is equal to the screenresolution.

If theres another solution, pleasa tel me, because the obove idea doesn't work.

Thx a lot!

Zepp

jaegernaut
04-07-2004, 12:41 PM
Welcome to the forum.

I think you can do either of these:

window.open(...."width=" + VarA + ", height=" + VarB)

window.open(...."fullscreen")

TheBearMay
04-07-2004, 12:56 PM
Where :


if (document.all)
var VarB = screen.height;
var VarA = screen.width;
else
var VarA = screen.availableWidth;
var VarB = screen.availableHeight;

Derfel
04-07-2004, 04:01 PM
A pop-up-window that automatically fills the screen??
To tell you the truth: There's nothing I hate more than such a thing!!!

I leave suche a site within the first half second!!

Please be warned: I'm not the only one, I suppose!