Window.open位置=否不起作用 [英] Window.open location =no does not work

查看:327
本文介绍了Window.open位置=否不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的网络应用中创建一个弹出窗口来加载统一文件。为此,我正在使用Javascript的Window.Open。​​



我不希望用户看到弹出窗口的URL或让他有机会改变URL。 / p>

根据此链接:



http://javascript.about.com/library/blpopup10.htm


位置可以设置为是或否为
表示新窗口
是否应显示位置或地址
bar。请注意,这只是
建议因为一些浏览器
如Firefox可以禁用这个
确保工具栏总是出现
。在IE7中这个设置控制
导航栏是否为
显示为地址栏将
始终显示在该浏览器中。


我不再有机会从IE7中删除该位置。
我试图将它设置为location = no(和= 0),实际上它在IE7 / 8或Firefox中不起作用。它在Safari中。



因为我们都有那些无聊的垃圾邮件弹出窗口没有URL栏(称为位置栏),这证明必须有办法!
希望有人得到正确答案。



谢谢。



问候,
Bruno。

解决方案

怎么样内联弹出式窗口?您可以编写自己的代码或查看: http://docs.jquery.com/UI/Dialog



我根本不使用标准 window.open javascript函数,因为在IE 8中它是恕我直言隐藏位置栏。



内联(我的意思是html)对话框具有比 window.open 更多的功能。



希望有所帮助。


I need to create a popup in my web app to load a unity file. For that I'm using Javascript's Window.Open.

I don't want the user to see the popup's URL or to give him the chance to alter the URL.

According to this link:

http://javascript.about.com/library/blpopup10.htm

"location can be set to yes or no to indicate whether or not the new window should display the location or address bar. Note that this is a recommendation only as some browsers such as Firefox can disable this to ensure that the toolbar will always appear. In IE7 this setting controls whether or not the navigation bar will be displayed as the address bar will always display in that browser. "

There is no longer a chance for me to remove the location from IE7. I've tried to set it to location =no (and =0) and in fact it doesn't work in IE7/8 or Firefox. It does in Safari.

Since we all have had those boring spam popups that don't have the URL bar (called Location bar) that's a proof that there must be a way! Hope that someone has the right answer.

Thank you.

Regards, Bruno.

解决方案

what about inline pop-ups? You can write your own code or see this: http://docs.jquery.com/UI/Dialog.

I dont use standard window.open javascript function at all, as in IE 8 it's IMHO impossible to hide location bar.

Inline (I mean html) dialogs have more features than window.open.

Hope it helps.

这篇关于Window.open位置=否不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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