This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open Word Document from JavaScript

 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I tried the below code to open word document from browser ,it is ok in Internet Explorer but it is not working in Firefox and Chrome.


<html>
<head>
<script type="text/javascript">



function openWordDocPath()
{
var objWord;
objWord = new ActiveXObject("Word.Application");
objWord.Visible = true;
objWord.Documents.Open("\\\\sinhyd800\\SCM\\PeerReview\\SCMWebsiteUserDocumentation\\UserDocumentationForSCMReleaseWebsiteRev-3.doc");
}
</script>
</head>
<body>
<form onSubmit="openWordDocPath()">
<input type="submit" value="submit">
</form>
</body>
</html>

Can any body help me to get out of this problem............
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ActiveX is IE Only. Not going to happen in the other browsers.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic