如何隐藏javascript window.open地址栏/位置栏? [英] How to hide javascript window.open address bar / location bar?
本文介绍了如何隐藏javascript window.open地址栏/位置栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何隐藏使用JS创建的弹出窗口的位置/地址栏?我附上了一张图片,标注了我想要隐藏的地方。
可能吗?我使用下面的脚本。
var ctr = 0;
函数openpopup(popurl){
var winName =New _+(ctr ++);
winpops = window.open(popurl,winName,height = 300,width = 500,top = 300,left = 500,scrollbars = yes,resizable)
}
并用它来调用onClick ='openpopup(this.href); return false;'
$
解决方案
忘记 window.open()
。使用 jquery ui 或 jquery工具覆盖。
一个js弹出窗口可以工作。
How can I hide the location/address bar of popup window created using JS ? am attaching a image where I marked the place wanted to be hidden.
Is it possible ? I use the below script for this.
var ctr=0;
function openpopup(popurl){
var winName = "New_"+(ctr++);
winpops=window.open(popurl,winName,"height=300,width=500,top=300,left=500,scrollbars=yes,resizable")
}
and used this to call onClick='openpopup(this.href);return false;'
Please help me for the same.
解决方案
Forget window.open()
. Use jquery ui or jquery tools overlay instead.
A js popup window will work.
这篇关于如何隐藏javascript window.open地址栏/位置栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文