Javascript 代码可以在Chrome和Firefox中使用,但不能在IE中使用
这些代码可以在Chrome和Firefox中使用,但不能在IE中使用。不知道为什么。请告知!谢谢 背景:当用户单击“单击此处下载”按钮时,选择目标区域设置并下载exe文件Javascript 代码可以在Chrome和Firefox中使用,但不能在IE中使用,javascript,jquery,html,Javascript,Jquery,Html,这些代码可以在Chrome和Firefox中使用,但不能在IE中使用。不知道为什么。请告知!谢谢 背景:当用户单击“单击此处下载”按钮时,选择目标区域设置并下载exe文件 <html> <body> <p>Select language:<br /> <select class="simpleFormSelect" id="h" name="list" xmlns="http://www.w3.
<html>
<body>
<p>Select language:<br />
<select class="simpleFormSelect" id="h" name="list" xmlns="http://www.w3.org/1999/xhtml">
<option value="exe download url here">English</option>
<option value="exe download url here">Arabic</option>
<option value="exe download url here">Chinese (Hong Kong)</option>
<option value="exe download url here">Chinese (Simplified)</option>
</select>
<input onclick="top.location.href = $('#h').prop('options')[$('#h').prop('selectedIndex')].value;" type="button" value="Click here to Download" />
(Download size: 6 MB)
</p>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
</body>
</html>
尝试为IE使用window.top.location=NEW\u URL,或者,如果代码是从iframe运行的,则使用parent.location=NEW\u URL