Home > Web Front-end > JS Tutorial > js custom method to implement file download by hiding iframe_javascript skills

js custom method to implement file download by hiding iframe_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 17:41:53
Original
1403 people have browsed it

js method to download files by hiding iframe

Copy code The code is as follows:

function download()
{
//Download file address
var url="http://music.baidu.com/data/music/file?link=http:// zhangmenshiting.baidu.com/data2/music/13618994/13618995183600128.mp3?xcode=48d4a720fcd9a974586066d0145f7207";
document.getElementById("ifile").src=url;
}

download

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template