You are here: irt.org | FAQ | JavaScript | Window | Q1606 [ previous next ]
The following requires exta priviledges from the user to be granted:
<html> <head> <title>Clean Window</title> <script language="JavaScript1.2"><!-- function doit() { if (document.layers) { netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite'); window.open('nocrome.htm','newwin','titlebar=no,width=' + window.screen.width+',height='+window.screen.height+',screenX=0,screenY=0'); } } //--></script> </head> <body> <a href="javascript:doit()">Open nocrome</a> </body> </html>