Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q764 How can you force a download of an image with a form button?

You are here: irt.org | FAQ | JavaScript | Image | Q764 [ previous next ]

Try:

<script language="JavaScript"><!--
function gogetit() {
    if (document.images) {
        var myImage = new Images();
        myImage.src = 'picture.gif';
    }
}
//--></script>

<form><input type="button" value="Click Here" onClick="gogetit()"></form>

Feedback on 'Q764 How can you force a download of an image with a form button?'

©2018 Martin Webb