You are here: Re: onload=window.open problem « HTML « IT news, forums, messages
Re: onload=window.open problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация