spacer
Yehuda Shiran August 25, 2001
Removing the Trusted Application's Border Window Chrome
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source
Trusted applications are considered safe enough to remove the border window chrome from them. The border window chrome includes such important buttons as the close button. Once the border is gone, you won't have a way to close a dialog box. Therefore, make sure your dialog box has an alternative button to close it. This HTA includes the following call:

window.showModalDialog('010825a.hta','','unadorned:yes');
Click the Pop A Dialog Box button. Observe the weird dialog box without any border (IE 5.5 and up). Click the Go Away button to close the dialog box. You cannot remove the border window chrome from a dialog box that opens from an untrusted application. Try it. We try to remove the border by:

window.showModelessDialog('010825.html','','unadorned:yes');
The possible values of the unadorned property are: yes, no, 1, 0, on, and off. Their semantics are intuitive.

For more on modal and modeless dialog boxes, go to Column 90, Modal and Modeless Dialog Boxes.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script · Book Review: Content Rich
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags