如何使用javascript window.open在Firefox中隐藏地址栏 [英] How to hide address bar in Firefox using javascript window.open

查看:607
本文介绍了如何使用javascript window.open在Firefox中隐藏地址栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用javascript window.open禁用Firefox中的地址栏。此外,该脚本应该在IE浏览器,Safari浏览器和铬。任何建议。

I want to disable the address bar in Firefox using javascript window.open. Also the script should work in IE, Safari and chrome. Any suggestions.

推荐答案

(未经测试)

(untested)

function openWindow(){
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer")
{
window.opener=self;

}
window.open(‘filename.htm’,'null’,'width=900,height=750,
toolbar=no,scrollbars=no,location=no,resizable =yes’);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);
self.close();
}

http://saher42.wordpress.com/2006/08/10/hiding-the-address-bar- on-pageload-using-javascript /

这篇关于如何使用javascript window.open在Firefox中隐藏地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆