This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Window Sizing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Window Sizing" Watch "Window Sizing" New topic

Window Sizing

RichardW Winch

Joined: Sep 23, 2003
Posts: 3
The following code opens 2 PopUp windows; Problem is on the "topwindowheight", I can't seem to get the window to come up with less height regardless of the size specified in the script. Any Ideas??
<script language="JavaScript">
function openWindow() {
if (window.screen) {
windowwidth = (window.screen.availWidth);
topwindowheight = (5); // Even if I put 1 window opens at same size
bottomwindowheight = (window.screen.availHeight);

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
min. size of a window is 100px...
topwindowheight = 200px;
did you change this one too??
bottomwindowheight = (window.screen.availHeight);
[ September 25, 2003: Message edited by: Eric Pascarello ]
I agree. Here's the link:
subject: Window Sizing
jQuery in Action, 3rd edition