Question

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 );
Was it helpful?

Solution

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

OTHER TIPS

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.

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 .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top