The simplest way to open a document is to use a hyperlink.
<a href="my.doc">my document</a>
Then clicking the back button let you return to the previous page.
Or is there a special reason for using javascript?
Gerhard Wentink
WEBSET interactive
wentink@w...
0595-557401
06-291724429
www.webset.nl
>-----Original Message-----
>From: sandra fernadez [mailto:sandra_fz@h...]
>Sent: Sunday, April 07, 2002 4:36 PM
>To: javascript
>Subject: [javascript] how to open a word document
>
>
>
> I am having a web based application from that application I
>need to open
>a word document inside the browser when I click a button.
>
>I tried this way.
> document.location = "my.doc"
>
> the above command opens the word document inside the
>browser but I am
>not able to got to my application when I press back button on browser.
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/the
programme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20