Simple implementation of a tag download link, a tag download link

Source: Internet
Author: User

Simple implementation of a tag download link, a tag download link

You only need to direct the href path to the file path. Note that the new download attribute in HTML5 allows you to specify a new file name for the browser to download, that is, rename the downloaded file on the client. Instead of the original file name on the link, the suffix of the download name can be changed, for example

. Zip can be changed to. text, but it cannot be used after being downloaded different from the original file suffix.

Copy XML/HTML Code to clipboard
  1. <A href = "Swiper-2.7.6.zip" download = "download me .zip"> download </a>

The simple implementation of the above a-tag download link is all the content shared by Alibaba Cloud xiaobian. I hope to give you a reference and support for the customer's home.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.