Title: Download Timer
Last modified: March 9, 2020

---

# Download Timer

 *  Resolved [imsaim](https://wordpress.org/support/users/imsaim/)
 * (@imsaim)
 * [6 years ago](https://wordpress.org/support/topic/download-timer-2/)
 * Hy there
    Is there any chance we can keep the user wait to show up the download
   button. I tried using this script in footer.php file by replacing id but not 
   working.
 * <script>
    var downloadButton = document.getElementById(“download”); var counter
   = 10; var newElement = document.createElement(“p”); newElement.innerHTML = “You
   can download the file in 10 seconds.”; var id; downloadButton.parentNode.replaceChild(
   newElement, downloadButton); id = setInterval(function() { counter–; if(counter
   < 0) { newElement.parentNode.replaceChild(downloadButton, newElement); clearInterval(
   id); } else { newElement.innerHTML = “You can download the file in ” + counter.
   toString() + ” seconds.”; }}, 1000); </script>
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years ago](https://wordpress.org/support/topic/download-timer-2/#post-12522957)
 * Hi,
 * The button is just a piece of HTML when put on a page, so you can target it with
   any scripting you like.
 * It’s probably easier to name the button and target the button name with a piece
   of jQuery instead of vanilla javascript.
 * Also maybe just hide the button instead of replacing DOM objects.
 *  Thread Starter [imsaim](https://wordpress.org/support/users/imsaim/)
 * (@imsaim)
 * [6 years ago](https://wordpress.org/support/topic/download-timer-2/#post-12524060)
 * Thanks for the reply.
    Can you please suggest me any web resource doing this?
 * I tried finding some way but couldn’t find any for the max button.
 * Or explain it here whenever you get time, It will be more effective for the new
   users as well who are finding this topic.
    -  This reply was modified 6 years ago by [imsaim](https://wordpress.org/support/users/imsaim/).
 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [6 years ago](https://wordpress.org/support/topic/download-timer-2/#post-12526432)
 * Hi,
 * I can’t really. This is web developer territory, not something our plugin does.
 * When I google for wordpress plugins with timed content / timers and such I can
   find a few that might be able to do what you want. You can try.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Download Timer’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

## Tags

 * [maxbutton](https://wordpress.org/support/topic-tag/maxbutton/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/download-timer-2/#post-12526432)
 * Status: resolved