View Full Version : How to disable address bar of JS Popup Window?

03-03-2010, 11:54 AM
Hi Experts,

I am trying to open a popup window on clicking a link. It works fine, but all I need now is to disable the address/URL bar from the window for all browsers.
I am using the below script...

<script type="text/javascript">
function popup(url)
var width = 600;
var height = 400;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=no';
params += ', menubar=no';
params += ', resizable=no';
params += ', scrollbars=yes';
params += ', status=no';
params += ', toolbar=no';
newwin=window.open(url,'windowname5', params);
if (window.focus) {newwin.focus()}
return false;
// -->

<a href="javascript: void(0)"

Please guide me how can I do that...


03-03-2010, 12:46 PM
Useless !!!

You didn't read my post I think.

Philip M
03-03-2010, 01:34 PM
You can't. Security feature. Someone could easily set up a phishing website for Paypal, and modify the url to say paypal.com instead of whatever false url they were using before. If any browser were to adopt this ability all users of that browser would be at risk.

Why would you even ask for such a thing to be possible? Please tell us of a legitimate reason.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.