This is what I'm using on a app I'm writing.

//open the actual test window
function StartTest()
{
        var h = screen.availHeight - 30;
        var w = screen.availWidth;
        window.open("test_window.cfm?begin=1", "exam",
"toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,width="+
w + ",height=" + h);
}

the -30 is for the Windows bar at the bottom of the screen, since it stays
in front I didn't want the browser behind it.

Hope it helps.

J.

John Wilker
Web Applications Consultant
Macromedia Certified ColdFusion Developer

www.red-omega.com <http://www.red-omega.com>

What does Snoop Dogg use to do his laundry?  Blee-otch!


-----Original Message-----
From: James Taavon [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 9:58 AM
To: CF-Talk
Subject: OT: Window Size to fit desktop area


I believe this will get posted since the list seems to be working again.
Still waiting for the dump of old messages.


I wanted to know when opening a new window using javascript, is there a
way for the window to be the size of the desktop area with out defining
numeric values for width and height? I tried using "*" instead of
numeric values, but the result I got was a smaller window than I
originally had.

Thanks in advance,
James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to