2011-02-02 15 views
1

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> 

は、誰もがこの問題を解決する方法を知っていますか?おかげさまで

答えて

0

私はそれはあなたがwindow.open関数に取得しようとしているリソースを完全に、有効なURIを渡す必要が

http://support.microsoft.com/kb/812935

http://support.microsoft.com/kb/316431

+0

help.iに感謝しましたが、まだ記事に誤りがあります。 – Sukhjeevan

+0

@sukhiあなたのコードは他のブラウザで動作しているのですか?私はそれがモジラ、オペラ、またはcromeで働いているということですか? – enthusiastic

+0

はMozillaで動作しています。 – Sukhjeevan

0

を助けることを願っています。 など。 BBCのウェブサイトからスタイルシートをダウンロードするには、次の

window.open("http://static.bbc.co.uk/homepage/css/bundles/domestic/main.css?661" "_self","fullscreen=no,toolbar=yes, width=800, height=600, menubar=yes, status=no,scroll=yes"); 

はBTW http://www.websitename.com ;-)

HTHで何のウェブサイトはありません。

関連する問題