java-scriptを使用してファイルをダウンロードしようとすると、次のエラーが発生します。javascriptを使用してdocファイルをダウンロードするには
ERROR:
Internet Explorer cannot download Sample.doc from www.websitename.com.
Internet Explorer was not able to open this Internet site. The request is either unavailable or cannot be found.Please try again later.
HTML:
<html>
<head>
<script type="text/javascript" language="javascript">
function winopen()
{
window.open("Sample.doc","_self","fullscreen=no,toolbar=yes, width=800, height=600, menubar=yes, status=no,scroll=yes");
}
</script>
</head>
<body onload="winopen();">
</body>
</html>
は、誰もがこの問題を解決する方法を知っていますか?おかげさまで
help.iに感謝しましたが、まだ記事に誤りがあります。 – Sukhjeevan
@sukhiあなたのコードは他のブラウザで動作しているのですか?私はそれがモジラ、オペラ、またはcromeで働いているということですか? – enthusiastic
はMozillaで動作しています。 – Sukhjeevan