Here is my code which will open MSWord document through
java script.
In IE it works fine but in Mozilla firefox its throwing me some error like ActiveX object is not defined.
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT">
function Comp_action()
{ var url = document.Actiontab.selectcomp.options[document.Actiontab.selectcomp.selectedIndex].value
if (url=="E")
{ alert("hello")
var word=new ActiveXObject('Word.Application');
var docText;
var obj;
word.Visible = true;
//
String abc="";
obj= word.Documents.Open("C:\\A.xml");
alert("hello2")
}//if
else { } //else
}
</SCRIPT>
Please help to open MSWord
doc threw Firefox also. Is Mozilla doesnt support Active Xobject.