Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open new popup window without address bars in 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

like image 696
Anbu Avatar asked May 26 '10 01:05

Anbu


People also ask

How do I hide the address bar in popup window?

var winFeature = 'location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes'; window. open('Result. html','null',winFeature); In many solutions, just the location=no attribute can hide the address bar (in both IE & Chrome).

How do I hide the address bar in Firefox?

F11 hides the address bar in Firefox eventually. Using it a second time will make the bar reappear. If you only want to hide the address bar, uncheck the menu item at View > Toolbars > Navigation Toolbar. F11 is actually the button to make Firefox full screen, but I guess for his needs, it's adequate.

How do I make a new tab open with a new window in Firefox?

Note that you can hold the Shift key and left-click a link to open the link in a new window. Note that you can hold the Shift key and left-click a link to open the link in a new window.


1 Answers

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

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'); 
like image 174
Intelekshual Avatar answered Oct 25 '22 17:10

Intelekshual