• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Window Sizing

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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);

}
window.open('about:blank','windowNameBottom','width='+windowwidth+',height='+bottomwindowheight+',screenX=0,screenY=0,top=0,left=0,resizable=yes,menubar=yes,location=yes,toolbar=yes,scrollbars=yes,status=yes');

window.open('about:blank','windowNameTop','width='+windowwidth+',height='+topwindowheight+',screenX=0,screenY=0,top=0,left=0,resizable=no,menubar=no,location=no,toolbar=no,scrollbars=no,status=no');
}
//--></script>
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic