Home >Web Front-end >JS Tutorial >JS function to save pictures by clicking on the connection_Image special effects

JS function to save pictures by clicking on the connection_Image special effects

WBOY
WBOYOriginal
2016-05-16 18:54:381003browse

Both forms are available
The first one:


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]

Second type:
Click here to download image
[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute <script> function SaveAs5(imgURL) { var oPop = window.open(imgURL,"","width=1, height=1, top=5000, left=5000"); for(; oPop.document.readyState != "complete"; ) { if (oPop.document.readyState == "complete")break; } oPop.document.execCommand("SaveAs"); oPop.close(); } </script>]<script> function SaveAs5(imgURL) { var oPop = window.open(imgURL,"","width=1, height=1, top=5000, left=5000"); for(; oPop.document.readyState != "complete"; ){ if (oPop.document.readyState == "complete")break; } oPop.document.execCommand("SaveAs"); oPop.close(); } </script>
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