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.
精彩评论