469,290 Members | 1,882 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

File Download and page redirection from one click

How can I create a link to a zip/exe file, that will start a download and
then redirect to another page.

The files being downloaded will be different, but the page to be directed
to will stay the same.

I want the redirect to happen as soon as the download begins...

How can I do this ?

Thanks
Jul 20 '05 #1
2 21609
James T Kirk wrote:
How can I create a link to a zip/exe file, that will start a download and
then redirect to another page.

The files being downloaded will be different, but the page to be directed
to will stay the same.

I want the redirect to happen as soon as the download begins...


thefirstpage.html:
<a href="thatotherpage.html">Download that other page</a>

thatotherpage.html:
<meta http-equiv="Refresh" content="1; url=download.exe" />
--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/
Jul 20 '05 #2
Is it possible to do it as a HREF... ?

<a onclick="parent.location='newpage.html'" href="file.zip">Download</a>

That way each download is a separate link, redirecting to the same
newpage.html ??

Thanks

On Thu, 21 Aug 2003 12:10:23 +0000, Klaus Johannes Rusch
<Kl********@atmedia.net> wrote:
James T Kirk wrote:
How can I create a link to a zip/exe file, that will start a download and
then redirect to another page.

The files being downloaded will be different, but the page to be directed
to will stay the same.

I want the redirect to happen as soon as the download begins...


thefirstpage.html:
<a href="thatotherpage.html">Download that other page</a>

thatotherpage.html:
<meta http-equiv="Refresh" content="1; url=download.exe" />


Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by craigkenisston | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.