开发者

How can i hide the location and status bar in Mozilla firefox in javascript

开发者 https://www.devze.com 2022-12-22 15:15 出处:网络
In a project i use the following code to open a window: window.open(href, \'mysite\' ,\'width=401,height=380,directories=no, toolbar=no, scrollbars=no, location=no, resizable=no, menubar=no, status=n

In a project i use the following code to open a window:

window.open(href, 'mysite' ,'width=401,height=380,directories=no, toolbar=no, scrollbars=no, location=no, resizable=no, menubar=no, status=no')

But Mozilla firefox and IE always show the location bar and Status bar. How can i 开发者_开发技巧hide those?


You can't any more. Those bars can not be disabled anymore due to security restrictions. It was too easy for malicious sites to fake what web site the user was on.

You could use "inline" dialogs like JQuery dialog. They are HTML elements within the current page, fully configurable and also immune against pop-up blockers.

0

精彩评论

暂无评论...
验证码 换一张
取 消