<HTML>
<script>
function openWord() {
var neword=new ActiveXObject("Word.Application")
neword.visible=true
neword.Documents.Add()
neword.Selection.TypeText("Hello Word!")
neword.Application.Activate()
neword.ActiveDocument.SaveAs("c:\\test.doc")
neword=null
}
</script>
<input type=button onClick="openWord()" value="OpenWord">
</HTML>
<script>
function openWord() {
var neword=new ActiveXObject("Word.Application")
neword.visible=true
neword.Documents.Add()
neword.Selection.TypeText("Hello Word!")
neword.Application.Activate()
neword.ActiveDocument.SaveAs("c:\\test.doc")
neword=null
}
</script>
<input type=button onClick="openWord()" value="OpenWord">
</HTML>