Where abouts is the word document located... and how do you want it displayed to the user?
If it's on your server and you want it to be opened in a browser window:
Code:
window.open('/somepath/somefile.doc');
Would do the trick.
If you want to load a file from the user's system or explicitly in Microsoft word (not word in the browser) then it gets trickier and you'd need to be working in a tightly controlled (intranet) environment.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Check out Tek-Tips Australia New Zealand forum1155
Although depending on how your browser is configured, this could open in the browser window / open in word etc, check your MIME type settings. If you use this on the web, then you are likely to have little / no control over how the data is presented to an end user - especially those without word ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.