Thanks, your idea works.
But I want to download .ppt files in IE and Netscape. For .ppt files,
the file opens but immediately goes to the slideshow mode and so the
user can only view and not download the file.
How do I make them save the .ppt file?
OR
Now what I want to do is, open the .ppt in a new window(as opposed to
open it in the main window) and somehow make them download or open the
file not in slideshow mode.
Can you please help me with this?
Thanks
"Dominique" <> wrote in message news:<c7e8qb$sd0$>...
> in the main window:
>
> function startDownload() {
> do whatever e.g document.location = filename etc...
> }
>
> in the pop-up window:
>
> (this is the onlick event for the "click here to start....")
>
> function startDownload() {
> window.opener.startDownload();
> self.close()
> }
>
> "Anitha" <> wrote in message
> news: om...
> > Hello All,
> >
> > Using Javascript and using one click, I have to close the window(pop
> > up) and start the download of a file simultaneously.
> >
> > There will be a hyperlink in a pop up window as "Click here to start
> > the download". When the user clicks on it, this pop up window should
> > close and the file(which is behind the screen) will start to download.
> >
> > Can someone please tell me how to do this or point me to the right
> > website where I can find an answer to this question?
> >
> > Thanks
|