实现html文件下载而不是打的方法
    <script>
	function svcode(obj,b) { 
//		var winname = window.open('','_blank'); 
//		window.document.open('text/html', 'replace'); 
//		window.document.writeln(obj.value); 
		window.document.execCommand('saveas',b,b); 
//		window.close(); 
	} 
</script>
<a 
href="javascript:svcode/wordDownload/Spell20It.pdf','QSB_PartB.pdf')">
直接下载还是打开
</a>