Easily Add a Download Button to Your Websites - HTML, CSS & JavaScript Tutorial

Easily Add a Download Button to Your Websites - HTML, CSS & JavaScript Tutorial

dcode

1 год назад

29,680 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@pankajpanday6351
@pankajpanday6351 - 26.10.2023 10:38

for me the image just opens in new tab instead of downloading

Ответить
@fashionostella
@fashionostella - 05.10.2023 09:16

I am 324 liker. Sir kindly let me know how to find the HTML code template related to this video tutorial

Ответить
@user-nh6wb3op5j
@user-nh6wb3op5j - 11.09.2023 17:28

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

Ответить
@S-Lomar
@S-Lomar - 01.09.2023 09:52

🥰🥰🥰😍😍😍😍🤩🤩🤩🤩😍🥰🥰🥰🥰🥰🥰🥰🥰🤩🤩😍😍😍🤩🤩🤩🤩🥰🥰🤩🤩😍😍🤩🤩

Ответить
@singhvimlesh
@singhvimlesh - 12.07.2023 09:13

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.

Ответить
@ralligarants5684
@ralligarants5684 - 09.07.2023 13:46

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

Ответить
@spherical_pratham
@spherical_pratham - 25.06.2023 19:14

wowowowowowow

Ответить
@Nordobali
@Nordobali - 30.05.2023 03:11

It keeps opening my image in a new tab. I even used a javascript script linked to a <button> but even then it opens the image instead of downloading it

Ответить
@yashsoni8043
@yashsoni8043 - 25.05.2023 08:53

Please bro i love this colour theme please tell me ❤

Ответить
@yashsoni8043
@yashsoni8043 - 24.05.2023 19:04

Hey can you please tell me what is you color theme in VScode please i love it

Ответить
@themastermind82
@themastermind82 - 14.05.2023 06:32

can i make it so it downloads a file on my computer?

Ответить
@Memes4eva_4u
@Memes4eva_4u - 30.04.2023 05:45

Thanks for the updated version! 😊

Ответить
@HocineFerradj
@HocineFerradj - 27.01.2023 20:33

thanks .... شكرا .... shokraan

Ответить
@suelingsusu1339
@suelingsusu1339 - 27.01.2023 11:11

🙏🙏🙏🙏👌👌👌👌👌🖖🖖🖖🖖🖖

Ответить
@moshiurrahman5127
@moshiurrahman5127 - 26.01.2023 15:20

Fantastic! how can we download multiple images by clicking one button?

Ответить
@hassaneoutouaya
@hassaneoutouaya - 11.01.2023 23:00

Thank you so much !

Ответить
@RohitPanwarVlog
@RohitPanwarVlog - 11.01.2023 19:33

How to ad this code use my site

Ответить
@anasouardini
@anasouardini - 06.01.2023 16:16

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.

Ответить
@montebont
@montebont - 04.01.2023 22:03

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 <img> and <button> "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.

Ответить
@Seacrest.
@Seacrest. - 04.01.2023 21:13

do you have a video about creating reactivity with vanilla js?

Ответить
@tahsinalmahi8769
@tahsinalmahi8769 - 04.01.2023 19:13

Please make a tutorial on FileReader API of JavaScript.

Ответить
@viniciusm.m.7822
@viniciusm.m.7822 - 04.01.2023 14:30

Thanks, bro!!!
God bless you!

Ответить
@AdolfEzeribe
@AdolfEzeribe - 04.01.2023 13:35

Thank you very much, Dom.
May I ask? Could you please do something similar for downloading a page as PDF?

Ответить