Create A Download Button with Timer in HTML CSS & JavaScript | Download Files with Countdown Timer

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2022
  • In this video tutorial, you will learn to Create A Download Button with a Timer in HTML CSS & JavaScript. When you click the Download Button, a countdown timer appears until you have to wait. After the time got finished the file will download.
    To add your own file link, read in the comment section.
    Download Source Codes of this Download Button
    www.codingnepalweb.com/downlo...
    ---
    🔗 Links
    ✅ JavaScript Projects
    ➤ • JavaScript Projects
    ✅ Buttons Design
    ➤ • CSS Buttons
    #Button_with_Timer #Downlod_Button #HTML_CSS_JavaScript
    ---
    🎵 Music Credit:
    Ikson - We Are Free (Vlog No Copyright Music)
    • Ikson - We Are Free (V...
    Deep Sea by Vendredi
    • Deep Sea - Vendredi (N...

Комментарии • 43

  • @CodingLabYT
    @CodingLabYT  Год назад +2

    If you want to give your Google Drive link there then you can replace this “1aYiaLn3YOjL…” ID with your file ID. To get a file ID, upload your file on Google Drive > Right Click on the File > Click Share > Update General Access to “Anyone with the link” > Click Copy Link > Paste it on the notepad. In this link, you’ll get the file ID. The URL looks like this: drive.google.com/file/d/FILE-ID/view?usp=sharing

  • @S-Lomar
    @S-Lomar 7 месяцев назад

    Thank you for sharing 💕❤️♥️😍♥️💕♥️😍❤️❤️💓❤️♥️❤️♥️

  • @steampunker125
    @steampunker125 Год назад +1

    Honestly , most useful things are here. Thank to YOU for these times you're putting on it

  • @ashishpatel6078
    @ashishpatel6078 Год назад +1

    One of the best video to learn logic
    Thanks sir love from india 🇮🇳
    Keep uploading javascript 🎥

  • @jaahiltirechannel9976
    @jaahiltirechannel9976 Год назад +1

    Excellent
    Ilove Like Those Lessons.

  • @EmmanuelIgoni-ei8tv
    @EmmanuelIgoni-ei8tv 2 месяца назад

    Nice 👍

  • @Web-abhi-coder
    @Web-abhi-coder Год назад

    Great

  • @TechBarAmaBaro4810
    @TechBarAmaBaro4810 Год назад

    Can you please make a way that you helping people with HTML,CSS, J's and sharing your experience with others.
    Also solving problems and explaining what you doing when you coding.
    Thanks

  • @S-Lomar
    @S-Lomar 8 месяцев назад

    Well done 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

  •  7 месяцев назад

    Likeeeeeeeeeee

  • @sgeasyknowledge2009
    @sgeasyknowledge2009 8 месяцев назад +1

    bro how i create mulitple button tell please

  • @Penbyte
    @Penbyte Год назад

    Good work and first comment and like

  • @Henry_Nunez
    @Henry_Nunez Год назад

    Verry good 👍👍

  • @BlitzFactz
    @BlitzFactz Год назад

    #first 🤩

  • @gitbot_chatbot2024
    @gitbot_chatbot2024 Год назад

    Thanks

  • @cinemaatoz402
    @cinemaatoz402 9 месяцев назад +1

    Plaese make a video how to use this code because we don't know

  • @sultanshah-vk9zz
    @sultanshah-vk9zz Год назад

    how can i add modals on that button

  • @mhrhabib02
    @mhrhabib02 10 месяцев назад

    How do I use it to blog posts?

  • @user-zd1cf5jp5c
    @user-zd1cf5jp5c Год назад

    next video table responsive beautiful

  • @saranshbhardwaj5140
    @saranshbhardwaj5140 Год назад

    bro what software you uses to record screen

  • @jorgedelacruz6612
    @jorgedelacruz6612 3 месяца назад

    Hi can you teach me in private?

  • @sultanshah-vk9zz
    @sultanshah-vk9zz Год назад

    i want to add button form modals

    • @CodingLabYT
      @CodingLabYT  Год назад +1

      Here is the tutorial - ruclips.net/video/X4hkueyp7zY/видео.html

    • @sultanshah-vk9zz
      @sultanshah-vk9zz Год назад

      @@CodingLabYT i want to add timing button how it work if user open new tab page then start timing button 10 second and then click button open models form submit how is it possible it will be work

  • @smellingyou
    @smellingyou Год назад

    Why did you create this?
    if(downloadBtn.classList.contains("disable-timer")) {
    return location.href = fileLink;
    }

    • @CodingLabYT
      @CodingLabYT  Год назад

      To stop the timer if it is already executed, by this code users can download the file multiple times without waiting, again and again, until the webpage gets refreshed.

    • @smellingyou
      @smellingyou Год назад

      @@CodingLabYT nice, ty bro

  • @muriztstudio366
    @muriztstudio366 11 месяцев назад

    How to add this button in different posts. For example, I am using this script
    var downloadButton = document.getElementById("download");
    var counter = 60;
    var newElement = document.createElement("p");
    newElement.innerHTML = "You can begin your download in 60 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 begin your download in " + counter.toString() + " seconds.";
    }}, 1000);
    Here's the code I put in every post
    [su_button id="download" url=drive.google.com/uc?export=download&id=1aYiaLn3YOjL-_o5QBCy7tU1epqA6gZoi" style="soft" background="#61ac4b" color="#ffffff" size="5" center="yes" radius="0" icon="icon: download"]DOWNLOAD NOW[/su_button]