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

Q1326 How can I display a download image when a form is submitted?

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

Try:

<form onSubmit="if (document.images) document.images['myImage'].src = 'loading.gif'">
...
</form>

or

<form name="myForm">
<input type="button" onClick="if (document.images) document.images['myImage'].src = 'loading.gif'; setTimeout('document.myForm.submit()',1000)" VALUE="Download">
</form>

©2018 Martin Webb