如何在模态对话框中隐藏地址栏? [英] How can I hide the address bar in a modal dialog?
本文介绍了如何在模态对话框中隐藏地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在模态对话框中隐藏地址栏(位置栏)?
这是我的代码:
How can I hide the address bar (location bar ) in a modal dialog? Here is my code:
var dialogFeatures = 'center:yes; dialogWidth:600px; location:no;dialogHeight:400px; edge:raised; help:no; resizable:no; scroll:no; status:no; statusbar:no; toolbar:no; menubar:no; addressbar:no; titlebar:no;';
newwindow2 = window.showModalDialog('Combo?start1=' + calEvent.start + '&end1=' + calEvent.end + '&ownerType=' + < %= ApplicationConstants.OWNER_TYPE_CALENDAR % > , 'app', dialogFeatures);
推荐答案
这是不可能的。地址栏是大多数浏览器中的安全功能,自版本7以来的IE浏览器,在Firefox(我认为)自版本2以来。
It's not possible. The address bar is a security feature in most browsers, in IE since version 7, in Firefox (I think) since version 2.
这篇关于如何在模态对话框中隐藏地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文