Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Image | Q1326 [ previous next ]

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

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.