Poornima
Poornima

Reputation: 203

How to hide navigation toolbar in firefox

I have opened a new window like this. I have to hide navigation toolbar in firefox and for that I provided location = no. It doesn't work in firefox. How can I hide the address bar (navigation toolbar)

var features = 'height=420,width=320,top=10,left=25,status=no,toolbar=no,location=yes,menubar=no,titlebar=no,scrollbars=yes,modal=yes';

window.open ( path,title,features );

Upvotes: 1

Views: 8418

Answers (3)

Vijay
Vijay

Reputation: 1

If you wish to secure data which is passed as querystring - you can use POST method instead of GET method by specifying method=post in the querystring .

Upvotes: 0

jackmarrows
jackmarrows

Reputation: 55

I attempted this with my own site and used:

window.open('URL','Title','width=420,height=320,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes,directories=no');

This got rid of the toolbars but I wasn't able to get rid of the address.

Upvotes: 0

Quentin
Quentin

Reputation: 943569

You can't. Most modern browsers forbid JavaScript from hiding the address bar in new windows as an anti-phishing measure.

Upvotes: 6

Related Questions