Click here to Skip to main content
16,020,459 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I would like to show loading image , while page is getting loaded.
We don't have any AJAX call to know when loading is completed.

How can I achieve this ...

I have written a div for showing the load image. Can anyone help me , in which form event I can show the div and in which from event I can hide the div .?

Thanks in advance.
Posted

1 solution

You can show div on window.onbeforeunload event and you don't need to hide it as div will get unload as soon as new page is loaded on browser.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900