The moose likes HTML, CSS and JavaScript and the fly likes Function to open word Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Function to open word Document" Watch "Function to open word Document" New topic

Function to open word Document

Shrikanth Nekkanti
Ranch Hand

Joined: Jul 12, 2007
Posts: 48
I want to open a word document when user clicks on a button.
can anybody tell me how to write javascript function for this.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
If you put a link to the document on the page, then Word will most likely be opened automatically once the user clicks on it.
I agree. Here's the link:
subject: Function to open word Document
It's not a secret anymore!