如何隐藏地址栏在最新版本(Firefox, chrome和internet explorer)使用javascript窗
How to hide address bar in lastest version of (Firefox, chrome and internet Explour) using javascript window.open
如何在最新版本(Firefox, chrome和internet Explorer)中隐藏地址栏
我正在使用下面的代码,但它不工作。
var popup = window.open('@Url.Action("LoanTaggingErrorReport","Finance")',
'name','width=900,height=750,
toolbar=no,scrollbars=no,location=no,resizable =yes');
我在网上看了几个解决方案,但似乎没有一个可以让IE和Firefox一起工作。然后我想出了一个办法来解决这两个问题。代码如下:'
<js>
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();
}
</js>
'注意:如果窗口没有打开,请关闭此站点的弹出窗口拦截器
相关文章:
- jQuery表单验证适用于Mozilla和Internet Explorer,但不适用于Chrome或Safari
- 输入类型的图像在Internet Explorer中不起作用,但在Chrome和Firefox中起作用
- Javascript片段不适用于Chrome,但适用于Internet Explorer
- 提交按钮不会;不适用于Chrome或Firefox,但适用于Internet Explorer
- Chrome 和 Internet Explorer 无法离线工作,在 Firefox 上工作正常
- JS幻灯片适用于Firefox和chrome,但不适用于Internet Explorer
- 使用Chrome打开Internet Explorer / Firefox等窗口
- getElementsByClassName 在 Google Chrome 和 Internet Explorer 中
- Canvas 元素 + Javascript 在 Chrome 和 Firefox 中工作,而不是在 Internet
- JavaScript脚本适用于Firefox,Chrome,Safari,Internet Explorer< 9,但不
- Javascript 日期在 Internet Explorer 和 Chrome 之间有不同的结果
- 提交按钮不会出现在Firefox中,而是出现在Chrome和Internet Explorer上
- 我的XML文件没有被Google Chrome和Internet Explorer使用
- jquery在Chrome中平滑滚动,而不是在Internet Explorer中
- 如何强制google chrome/firefox使用Internet explorer web浏览器控件
- 如何禁用剪切,复制和粘贴操作的密码框跨所有浏览器,即chrome和Internet Explorer
- 为什么这个下拉列表的排序工作在Internet Explorer,而不是在Chrome
- 如何隐藏地址栏在最新版本(Firefox, chrome和internet explorer)使用javascript窗
- Ajax和html事件在chrome, firefox和Internet Explorer
- 导航栏菜单不能在Microsoft Internet浏览器中工作,但可以在Firefox, Chrome和;歌剧