HTML5 Force Download

When you link to a file like an image or a PDF-document it will be displayed within the browser normally. The download-attribute in links prevents this behavior and offers the file as a download in your browser.

In html5 we can easily set up force download with an attribute called download, just check out the following markup. the download attribute allows you to set separate name to download with actual(same) link point extension

to know browser support visit: http://caniuse.com/#feat=download

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

Arjun
I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets.
DMCA.com Protection Status