Discussion Locked

Tiling Two Browser Windows

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am looking for a script to be able to tile two
browser windows. On click open a pop-up
window then resize the two windows next to
each other. The MSN home page has a help
button in the upper righthand corner that does
this.

6 replies

by bjenson4

I understand the pop up window but getting
the two windows to fill the screen at any size is
where i am having problems. Do you know of
any examples of this kind of code that i can
look at.

by hannes

function tileWindows (oWinA, oWinB, iLeft, iTop, iWidth, iHeight) {
oWinA.moveTo (iLeft, iTop);
oWinA.resizeTo (iWidth/2, iHeight);
oWinB.moveTo (iLeft + iWidth/2, iTop);
oWinB.resizeTo (iWidth/2, iHeight);
// function tileWindows

var oWinOpened = window.open ("new_window.html");
tileWindows (window, oWinOpened, 100, 100, 600, 400);

by yatin u

the function call
tileWindows (window, oWinOpened, 100, 100, 600, 400);

what is the 'window' parameter been passed?

by bjenson4

I used your example and I got the windows to
tile but I would like it to fill the whole screen.
This is were I am having the problems. I can
get it to work at 1024x768 but if the user has
there monitor set to a smaller size(800X600) it
blows out. I need a code that would be able to
adjust to any size monitor and fill the whole
screen.

This discussion is closed to new replies.