The front-end-html <a > tag, the download in the attribute, cannot download the video and change it into a viewing video.

Mar.02,2021

Note:
this attribute applies only to homologous URLs.
you can use blob: URLs and data: URLs to make it easier for users to download JavaScript-generated content (such as photos created using Web applications that draw online).
if the Content-Disposition: of the HTTP header exists and a file name is assigned a different file name than this attribute, the HTTP header takes precedence over this attribute.
if this attribute exists when Content-Disposition is set to inline, Firefox priority Content-Disposition, like the previous filename priority, while Chrome takes precedence over the download attribute.

reference: https://developer.mozilla.org.

same origin policy for browsers
https://developer.mozilla.org.

demo:
https://jsfiddle.net/ycloud/f.


http://www.w3school.com.cn/ti.
can take a look at


Click download!


I'll give you a case

<!DOCTYPE html>
<html>
<body>

W3School logo :

<a href="https://img.codeshelper.com/upload/img/2021/03/02/ays00lr24pu2123.gif" download="w3logo"> <img border="0" src="https://img.codeshelper.com/upload/img/2021/03/02/ays00lr24pu2123.gif" alt="W3School"> </a> </body> </html>

Note that the download attribute of the A tag should be equal to a value (the name of the downloaded file) download= "w3logo"


take out the target=_blank and try it?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3efd5-447fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3efd5-447fd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?