如何在客户端firefox浏览器中使用JavaScript设置Dom.disable_window_open_feature.location值

时间:2011-08-03 07:10:51

标签: javascript firefox

我是jag。根据用户要求,我需要在弹出窗口中隐藏地址栏(安全原因)。我使用window.open(“http://www.mydomain.com/mypage.htm”,“mywindow”,“location = 0,menubar = 0,status = 0,scrollbars = 0,width = 100,height = 100 “);在我的JavaScript中工作正常。但是,对于mozilla,我们需要设置Dom.disable_window_open_feature.location值。

在Web应用程序中,如何在用户的firfox浏览器中设置此项?有没有办法使用java脚本设置它。在使用window.open之前,我想使用JavaScript的setDom.disable_window_open_feature.location值。我怎样才能做到这一点?

1 个答案:

答案 0 :(得分:0)

这是不可能的。由于安全原因,Mozilla不允许您从网页更改该设置。