开发者

IE9 and "file:///" anchors

开发者 https://www.devze.com 2023-04-12 02:20 出处:网络
Ok, so using an anchor with an href like \"file:///C:/whatever/somefile.txt\" is straightforward, until browser security gets in the way. I can get them to work with Firefox by putting settings in a u

Ok, so using an anchor with an href like "file:///C:/whatever/somefile.txt" is straightforward, until browser security gets in the way. I can get them to work with Firefox by putting settings in a user.js file, but with IE9, no matter how 'trusted' I make the site and how many things I enable, they just don't work. Nothing happens when you click on the link with href like "file:///c:/temp/list.png" or "file:///c:/", while in Firefox (and suitable settings) the file or directory are both shown successfully. In IE, using javascript and attempting 'window.location=' with that sort of href leads to an 'Access is denied' exception, while in Firefox (with suitable settings) that works fine too. Have been looking all over for information about it, but not found any. Can a开发者_JS百科nyone advise on what's needed in the case of IE9?


You should probably read http://blogs.msdn.com/b/ieinternals/archive/2011/08/12/internet-explorer-9.0.2-update-changes-file-protocol-and-cookie-naming.aspx to start. Then you should update your question with the exact FILE:// URI that you're using, as well as an explanation of what specifically happens when you try to use this syntax.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号