Easily Add a Download Button to Your Websites - HTML, CSS & JavaScript Tutorial
ฝัง
- เผยแพร่เมื่อ 5 ธ.ค. 2024
- For your reference, check this out:
🏫 My Udemy Courses - www.udemy.com/...
🎨 Download my VS Code theme - marketplace.vi...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode
First of all: best wishes for 2023 and keep up the good works. I love your generic approach.
May I suggest an addition when the number of images is non-trivial - like in a gallery browser with a a variable number of images? I'd put the and "tuple" in a HTML template.
You'd have to "fetch" the (thumbnail) filenames from a server and then generate the page using the template. Once done you'd run your script.
brother how to copy the video address
if the page is restrict it? can we add some coding to html. I am trying to download a video from restricted website. any code do u have?
hi i m looking clicks i will pay u good rate for it
Thanks, bro!!!
God bless you!
Hey can you please tell me what is you color theme in VScode please i love it
Hello Sir, I go through your code but its not download its opening in new window. Download is not happning and I am doing same as your code.
hi i have ad code i need clicks
You need a image. And adjust the code to make it detect the image then it downloads.🤓
Thanks for the updated version! 😊
Thank you so much !
Thank you very much, Dom.
May I ask? Could you please do something similar for downloading a page as PDF?
IMHO that would be quite a challenge. HTML and CSS (your page and its style) essentially do the same as a PDF document: they are both abstract descriptions of a document that can be rendered in a device-independent (portable) way. But under the hood they are totally different.
But you don't have to re-invent the wheel. Browser plugins like PDF Mage (Chrome) do a very decent job.
@@montebont
You're right, @Ed de Jong. If it were not challenging, folks like me would be able handle it without troubling folks like Dom.
The Browser plug-ins are great, but requires that a User has the plug-in installed and knows how to use it.
But if I have a button say, at the top of my web pages, saying "click to download page as pdf", it will be more User-friendly I believe.
Nice tutorial bro 😍 I have an idea for your next tutorial! I'm trying to create a video-website, and I would like the users to be able to tag other users, use hashtags and to use emojies in the title and description and comments-sections. I think I would need a div that is contenteditable. Can you make a tutorial about how to create those functions please? It's supposed to work similar to the div on facebook or instagram
thanks, good, but you don't have to append tag "a" in DOM, this is excess, you can create and uses elements without DOM if it is not necessary
Please make a tutorial on FileReader API of JavaScript.
Fantastic! how can we download multiple images by clicking one button?
hi i m looking clicks i have ad code i will pay u good rate for it
It keeps opening my image in a new tab. I even used a javascript script linked to a but even then it opens the image instead of downloading it
hi i m looking clicks on my ad code
do you have a video about creating reactivity with vanilla js?
thanks .... شكرا .... shokraan
why not an anchor inside of a button? unless there is a serious a11y problem that can take MORE code to fix, this solution looks more expensive and error-prone.
from my experience, the less JS the better.
hi i m looking clicks i have ad code
Anybody know why chrome just opens the image in the same tab and not downloading it? Thanks.
Please bro i love this colour theme please tell me ❤
can i make it so it downloads a file on my computer?
for me the image just opens in new tab instead of downloading
same here
wowowowowowow
How to ad this code use my site
hi i have ad code i m lookin clicks i ill pay u good rate for it
I am 324 liker. Sir kindly let me know how to find the HTML code template related to this video tutorial
🥰🥰🥰😍😍😍😍🤩🤩🤩🤩😍🥰🥰🥰🥰🥰🥰🥰🥰🤩🤩😍😍😍🤩🤩🤩🤩🥰🥰🤩🤩😍😍🤩🤩