Click to See Complete Forum and Search --> : Replacing Button onClick


woods620
02-27-2007, 02:12 PM
On any single page I have multiple dropdown menus containing documents with download buttons asside each one. Depending on the document size the users system could take a while before the document is displayed. How would I make it so that after the button is clicked it is either replaced with an image or an image is inserted next to the button. Allowing the user to see a response from the system. this is the code i have for the button:

<input type="button" onClick="d_otherDoc(downloadForm,this);" id="checkList_Btn" value="Download">

CrazyMerlin
02-28-2007, 02:33 AM
how about simply changing the text on the button to say something like "Loading..."?


<input type="button" onClick="this.value='Loading...';d_otherDoc(downloadForm,this);" id="checkList_Btn" value="Download">