您的位置:首页 > 运维架构

如何屏蔽window.open打开窗口标题栏的url显示

2010-02-25 12:32 567 查看
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_22902951.html

b0lsc0tt:InvoiceInsight,

Not with window.open. You would have to use a frame, iframe, etc to hide the URL. Javascript only provides limited options/settings for "popup windows" and modifying or setting the title is not one of them.

By the way, that practice is usually appreciated by web users so they know the page they are viewing. I can understand cases where you would want that hidden but it would be abused too.

Let me know if you have any questions or need more information.

b0lsc0tt

用frame就可以屏蔽了.

<frameset rows="0,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="javascript:false" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="http://www.baidu.com"  name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>


自己后来尝试这么做,发现并不是这么回事.原来是信任站点问题.不过又出难题了,怎么添加?继续google
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐