window.open hiding addressbar is not working in Firefox 3

intikhabk
intikhabk used Ask the Experts™
on
I need to hide the address bar, prevent resizing of the window in Firefox. But the below code is not working. It is working in IE
window.open('testpage.html', 'mywindow', 'left=350,top=150,width=550,height=500,toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes');

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Depending upon what you would like to display have you considered using Thickbox?
Commented:
You can no longer do this in firefox 3. See this site: https://developer.mozilla.org/en/DOM:window.open

Specifically for hiding the address bar (location=no):

"Firefox 3 note

In Firefox 3, dom.disable_window_open_feature.location now defaults to true, forcing the presence of the Location Bar much like in IE7. See Bug 337344 for more information."

And for resizing the window (resizeable=no)

"Note: Starting with version 1.4, Mozilla-based browsers have a window resizing grippy at the right end of the status bar, this ensures that users can resize the browser window even if the web author requested this secondary window to be non-resizable. In such case, the maximize/restore icon in the window's titlebar will be disabled and the window's borders won't allow resizing but the window will still be resizable via that grippy in the status bar.

Starting with Firefox 3, secondary windows are always resizable ( bug 177838)"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial