[英]Open new xul tab without showing the address (like google chrome)
[英]Open XUL application without navigation bar
我创建了一个XUL对话框,每当我打开该对话框时,它就会用Firefox导航栏打开。 是否可以在不使用Firefox导航栏的情况下打开XUL应用程序? 屏幕截图已随附。 我使用Javascript的window.open命令。 即
window.open("http://localhost/test.xul", "test", "chrome, width=130,height=60, menubar=no");
这是XUL代码
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<dialog id="donothing" title="Dialog example"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons="accept,cancel"
buttonlabelcancel="Cancel"
buttonlabelaccept="Save"
ondialogaccept="return doOK();"
ondialogcancel="return doCancel();">
<dialogheader title="Options" description="My preferences"/>
<groupbox>
<caption label="Colour"/>
<radiogroup>
<radio label="Red"/>
<radio label="Green" selected="true"/>
<radio label="Blue"/>
</radiogroup>
<label value="Nickname"/>
<textbox/>
</groupbox>
</dialog>
尝试在window.open中添加“ location = no”:
window.open("http://localhost/test.xul", "test", "chrome, width=130,height=60, menubar=no, location=no");
请参阅window.open以供参考。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.