Posted by Adrienne Boswell on 02/15/06 05:33
Gazing into my crystal ball I observed "hol" <contact7@hol.gr> writing in
news:dst9ut$3r7$1@newsmaster.pub.dc.hol.net:
> I have this problem
> I want to automatically download a word document as long as a page has
> been loaded.
> I used the following code
>
><body onload=window.open('http://www.mydomain.com/document.doc');return
> true;>
>
> but it doesn't seem to work.
>
> Is there a way to open the word document, or even better activate the
> Save As dialog?
>
> Thanks beforehand
>
> Mark
>
>
>
I would be very unhappy if I went to a web site and it tried to open a Word
document, or tried to download something to me without my permission.
You also have to realise that not everyone _has_ Word.
Better:
<a href="document.doc" type="application/ms-word" title="Word Document XXX
kb">Document (xxx kb) MS Word</a>
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|