document.getElementById("HiddenLoadingImage").style.display = 'block';
(The defualt display state of the Image is hidden and it is shows up only when the button is clicked)
Also, when the server processing is over, I have a server side line of code to show a message that the processing is done
But my issue is - The Waiting image is still visible when the Alert of "Process Done" pops up.
How can I hide the image first and then show the Alert ?