The DOM Anchor download Property in HTML DOM is used to set or returnthe value of the download attribute of a link. The download attribute is used to specify the target link will download when user click.
It returns the download property.
It is used to set the download property.
anchorObject.download = filename
filename: It specifies the name of the file which has to be downloaded.
Return Value: It returns a string value which represents the name of the downloaded file.
Example-1: This Example returns the download Property.
Please Login to comment...