Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Window Chrome on PopUp Window

Status
Not open for further replies.

kimraznov

Programmer
Oct 16, 2000
31
US
I would like to understand what it would take to remove what I belive is called the "window chrome" from my popup windows. I am referring to the generic 3D border that windows and mac place around browser windows. Is this an OS command or a browser issue. I have been all over the place trying to find out this info. Thanks.
 
Hi

You can remove the chrome, but it requires a little trick. You need to open the window fullscreen (fullscreen=1), and then resize the window to your popup size:

var popup=window.open ('page.html' , '_splash', 'fullscreen=1' );

popup.resizeTo(200,200);
calendar_statuspop.moveTo(200,200);


This should do it. You can also look at for a more sophisticated version of this (with window dragging etc).

As a tip, I normally dont resize the window in the calling doc (as above), I resize on the "onload" event of the popup window. This means I can dynamically resize the popup based on it's content. I can also change the values and refresh the popup to get the size right (the alternate way above you have to change the values in the calling document, resize that, and then call the popup to test).

Hope this helps.
Cheers,

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top