有没有办法在IE中设置下载窗口的标题?
我有一个脚本可以强制以编程方式下载给用户。在 IE(至少 6,我见过的唯一版本的屏幕截图)中,下载窗口似乎采用了 URL 的最后一部分,并在下载窗口的标题栏中使用它。就我而言,URL 的最后一部分是“nohead”,它来自该项目使用的框架中的特定函数,并且禁止使用任何特定模板 - 基本上意味着“不会发送任何标头”由服务器或通过 HTML。所以我无法改变这一点。
我可以告诉客户这正是 IE 所做的事情,因为 IE 的一切都很糟糕,但这让我想知道 IE 是否会识别一些特殊的标头并将其用于窗口标题。显然它不是 Content-Disposition 标头的文件名属性。
I've got a script that forces a download to a user programatically. In IE (at least 6, the only version I've seen screenshots from), the download window appears to take the last part of the URL and use that in the title bar of the download window. In my case, the last part of the URL is "nohead", which comes from a specific function in the framework that this project uses, and which suppresses the use of any particular template - basically meaning "no headers" will be sent, either by the server or via HTML. So I can't change that.
I'm OK telling the client that this is just what IE does because, well IE sucks at EVERYTHING, but it got me wondering if there is some special header that IE will recognize and use for the title of the window. Clearly it's not the filename attribute of the Content-Disposition header.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,标题是一项安全功能。
No, the title is a security feature.