Home >Web Front-end >JS Tutorial >Introduction to the js method of downloading files by hiding iframe_javascript skills

Introduction to the js method of downloading files by hiding iframe_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:58:121152browse

Introduction to the js method of downloading files by hiding iframe

Copy the code The code is as follows:

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

download


Statement:
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