Collectives on Stack Overflow. Learn more. Asked 3 years, 5 months ago. Active 1 year, 9 months ago. Viewed 17k times.
Improve this question. Penny Liu 9, 5 5 gold badges 50 50 silver badges 75 75 bronze badges. Thangakumar D Thangakumar D 3 3 gold badges 10 10 silver badges 23 23 bronze badges. On which browsers do you test that code? Because I tested this in chrome and they both worked perfectly for me — mrdeadsven. In Firefox there is an issue that file must come from your own server or domain name, otherwise it will be opened in the browser.
Download 2 link is navigating to the image not downloading — Thangakumar D. SylwesterPilarz I am using chrome Version Show 1 more comment. Active Oldest Votes. Improve this answer. W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use , cookie and privacy policy. Copyright by Refsnes Data. There are no restrictions on allowed values, and the browser will automatically detect the correct file extension and add it to the file. You can also specify a value for the download attribute, which will be the new filename of the downloaded file.
If the value is omitted, the original filename is used. Specify a value for the download attribute, which will be the new filename of the downloaded file "w3logo. We just launched W3Schools videos. Get certified by completing a course today!
0コメント