Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3424296
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:27:27+00:00 2026-05-18T06:27:27+00:00

We are currently using a meta refresh to initiate a download on a page,

  • 0

We are currently using a meta refresh to initiate a download on a page, I read on Wikipedia that using this is not UX (user experience) friendly. So what is the way to have a download start after a few seconds when landing on a download page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:27:27+00:00Added an answer on May 18, 2026 at 6:27 am

    User interface-friendly way would:

    1. Not spring an unannounced surprise to the user. So postpone the download by X seconds and clearly announce that.

      This is done by setting up JavaScript logic to display a changing countdown to download. See below for details on implementation.

    2. Allow user to control this by allowing immediate download

      This is done by having the download timer announcement provide a widget (button or a link) to download immediately.

    3. Keep the current page, by opening the download in a new window/tab.

      The “kick off the download” logic should preferably be – instead of the obvious setting of window.location.href – something which opens a new window for the download. This way you allow the user to keep the main download landing page intact.

    4. If possible, present a nice download widget

      Instead of just pushing the URL of the download target, consider using custom download wisget like jQuery’s jDownload plugin


    To implement the changing countdown, do something like this:

    • Set up a variable for how long till download starts:

      var DownloadIn = 10;

    • Set up a timer in JavaScript using setTimeout()`:

      setTimeout("shouldWeDownload()", DownloadIn * 1000);

    • Subroutine shouldWeDownload() called from a timer will:

      • check if time period (stored in DownloadIn variable) is greater than zero.

      • If the time is NOT up (greater than zero), it will:

        a. Check if a special “AlreadyDownloading” variable is set to true – this variable will be explained later. If true, simply exit.

        b. print to a special DIV on the page – something very obvious and visible to the user – a message “XXX seconds left till the start of download. Click on this link to start the download”.

        c. Decrement DownloadIn variable

        d. Set the timer again using the same setTimeout

      • If the time’s up, kick off the download.

    • In addition, the “this link” link in the message would also immediately kick off the download. To make things clean, the “immediate dowload” onClick JS handler should set a special “AlreadyDownloading” variable which is checked in the logic above should be set to true, so we don’t start a second download due to minor race conditions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using the meta http-equiv='Refresh' to automatic start PDF downloads. however this
How do I show a PNG favicon in CakePHP? I'm currently using $this->Html->meta('icon') but
Currently using MySQL version 5.1.6 This is my first real world build and so
I am currently testing out using OSGi. I am running this through Eclipse. I
I am currently using this script to get new data every second from record_count.php
I have a problem with this code: <?php echo <meta http-equiv='refresh' content='3;search_enroll.php?&id='.$id />; ?>
I'm currently using Eclipse Indigo and I'd like to have my meta-model classes to
Hello i'm currently using a table to input values into a custom meta field.
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using Google Analytics as a supplement to our paid tracking software, but neither

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.