在 Firefox & 中打开没有地址栏的新弹出窗口IE [英] Open new popup window without address bars in firefox & IE

查看:21
本文介绍了在 Firefox & 中打开没有地址栏的新弹出窗口IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人能帮忙.只是无法在没有地址栏的情况下在 Firefox 中打开一个新窗口.IE 使用以下代码可以正常工作

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 及更高版本默认禁用设置 location.resizablestatus 也是默认禁用的.您可以通过在地址栏中输入about:config"并通过dom"过滤来验证这一点.感兴趣的项目是:

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

您可以在 Mozilla 开发人员 站点上获得更多信息.但是,这基本上意味着您将无法做自己想做的事情.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆