So I am trying to get the this HTML page to work, its in CSS & HTM
L. When I try to click the "a href="link here"
it doesn't work however if I open the window in Chrome vs. IE it works fine. Any idea as to why? The code is below for the HTML
I can post the CSS
if needed. The links below are not the actual links. The real links are going to a file on my pc/share drive. I am trying to load an HTA which is why it needs done in IE not chrome and no hrefs will work in IE with this for some reason no matter if its a https:// or anything it jsut doesn't work in IE.
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7243260-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script>
<div class="container">
<header>
<h1><img src="logo.png" width="500" height="180"></h1>
</header>
<div class="component">
<h2>Downtime</h2>
<!-- Start Nav Structure -->
<button class="cn-button" id="cn-button">Menu</button>
<div class="cn-wrapper" id="cn-wrapper">
<ul>
<li><a href="C:\Program Files (x86)\Futuremark\SystemInfo" target="_blank"><span>Click Me</span></a></li>
</ul>
</div>
<!-- End of Nav Structure -->
</div>
<section>
<h1>
<center>About</center>
</h1>
<p>Cool text here guys :)
<br>
<br> Even cooler text :).
</P>
</section>
</div>
答案 0 :(得分:1)
<a href="c:\Program Files (x86)\Futuremark\SystemInfo" target="_blank"><span>Click Me</span></a>
是一个文件夹uri。 IE将忽略它以防止任何网站访问本地文件系统。(shell)...如果攻击者获得对您的计算机文件系统的访问权限,则他们可以访问其他敏感信息。
IE曾经允许
<iframe src="c:\"/>
但现在已经修补了......
请参阅供应商网站https://www.futuremark.com/以获取有关在Web浏览器中使用桌面应用程序的建议...通常,IE和桌面应用程序之间的交互是使用ActiveX控件完成的。 Adobe PDF阅读器。然后,网页可以使用脚本来启动桌面产品并与之交互。 IE有安全区域......其他浏览器都有每个站点的安全设置......
您还可以在IE中使用浏览器扩展程序,它可以在shell文件夹中打开futuremark文件夹,而不是在浏览器框架中打开。软件供应商可能已经有一个可以在IE和Chrome和FX中安装的软件供应商。
答案 1 :(得分:0)
您必须在链接中添加http://
像这样:
<li><a href="http://google.com" target="_blank"><span>Google</span></a></li>