我想打开word文档Internet Explorer,点击浏览器中的链接浏览器后应打开子浏览器窗口,我想显示点击的word文档,编辑后我要显示" save&#34 ;该文件中的按钮。默认情况下,它必须在浏览器窗口中打开它为什么不打开。现在单击链接子窗口后,文档未在子窗口中打开,它正在打开office文档。
<body onload="startWord('https://xxxxx/documentEdit/remoteDocument.docx')">
<a href="javascript:startWord('https://xxxxxxx/documentEdit/remoteDocument.docx')">open file</a>
<script type="text/javascript" language="JavaScript">
function startWord(strFile)
{
var myApp = new ActiveXObject("Word.Application");
if (myApp != null)
{
myApp.Visible = true;
//myApp.Documents.Open(strFile);
windowObjectReference = window.open(strFile,
"PromoteFirefoxWindowName", "resizable,scrollbars,status");
}
}
</script>
</body>