开发者

How to hide navigation toolbar in firefox

开发者 https://www.devze.com 2023-02-02 23:51 出处:网络
I have opened a new window like this. I have to hide navigation tool开发者_StackOverflow中文版bar in firefox and for that I provided location = no. It doesn\'t work in firefox. How can I hide the addr

I have opened a new window like this. I have to hide navigation tool开发者_StackOverflow中文版bar 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 );


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


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 .

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号