在Firefox中无地址栏打开新的弹出窗口IE [英] Open new popup window without address bars in firefox & IE
问题描述
window.open('/ pageaddress.html','winname',
directories = 0,titlebar = 0,toolbar = 0,location = 0,status = 0,
menubar = 0,scrollbars = no,resizable = no,
width = 400,height = 350);
我需要为所有浏览器制作
默认情况下,Firefox 3.0及更高版本已禁用设置
位置
。 resizable
和 status
默认情况下是禁用的。您可以通过在地址栏中输入about:config并按dom进行过滤来验证。感兴趣的项目有: - dom.disable_window_open_feature.location
- dom.disable_window_open_feature.resizable
- dom.disable_window_open_feature.status
您可以在 Mozilla Developer 网站。然而,这基本上意味着你不能做你想做的事。
你可能想要做的一件事(虽然它赢得了解决你的问题),是把你的窗口功能参数引号,如下所示:
$ b $ pre $ window.open('/ pageaddress。 HTML, 'winname', '目录=没有,标题栏=没有,工具栏=没有,位置=没有,状态=无,菜单栏=没有,滚动条=没有,可调整大小=无,宽度= 400,高度= 350');
hope someone can help. just cannot get a new window to open in Firefox without address bars. IE works fine with below code
window.open('/pageaddress.html', 'winname',
directories=0,titlebar=0,toolbar=0,location=0,status=0,
menubar=0,scrollbars=no,resizable=no,
width=400,height=350);
I need to make for all browser
Firefox 3.0 and higher have disabled setting location
by default. resizable
and status
are also disabled by default. You can verify this by typing `about:config' in your address bar and filtering by "dom". The items of interest are:
- dom.disable_window_open_feature.location
- dom.disable_window_open_feature.resizable
- dom.disable_window_open_feature.status
You can get further information at the Mozilla Developer site. What this basically means, though, is that you won't be able to do what you want to do.
One thing you might want to do (though it won't solve your problem), is put quotes around your window feature parameters, like so:
window.open('/pageaddress.html','winname','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');
这篇关于在Firefox中无地址栏打开新的弹出窗口IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!