Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Address bar from popup window using Javascript

Is it applicable to remove the address bar from a popup window using javascript ex:

 window.open(url, 'liveMatches', 'width=720,height=800,toolbar=0,location=0, directories=0, status=0, menubar=0');

please advice,

like image 836
Yasser-Farag Avatar asked Jun 10 '12 12:06

Yasser-Farag


2 Answers

use jquery ui (http://jqueryui.com/demos/dialog/)

or perhaps

window.open(url,'liveMatches','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=720,height=800');

actually

You cannot remove the address bar in modern browsers. That is a security measure. The user must always know what page they are on. Address bar also let user know, what type of security is on that page (HTTP or HTTPS).

like image 136
Raab Avatar answered Oct 25 '22 05:10

Raab


Theoretically, yes. However, as with everything in Javascript, there's no guarantee that any given browser will support it or that the implementation will be consistent across browsers.

This link as well as this link indicate that the location option should control whether or not the Location/Address bar is shown. It should also have relatively good cross-browser support.

like image 34
Anthony Grist Avatar answered Oct 25 '22 04:10

Anthony Grist