Forum Moderators: open

Message Too Old, No Replies

window.open

Maximized

         

Alternative Future

2:13 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

I want to open a new window fully maximized to the clients monitor, using fullscreen=yes does not achieve what I am after as it looses the title bar getting screen.availHeight and Width maximizes it BUT not fully as the new window has the border around it that allows the client to maximize for a further 5 pixels or so.
Is there a way around this so that my new window is fully expanded when opened? I am using a launcher page so I have control over most settings.

Thanks in advance,

-George

Alternative Future

3:43 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Found a solution:

var width = screen.availWidth-4;
var height = screen.availHeight-23;
var win = window.open(theURL,winName,'scrollbars=yes,resizable=yes,width='+width+',height='+height+'');
win.moveTo(-4,-4);

-George