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>