Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Haii All,

How can I know that an iframe has finished loading or not in web browser control?
can anyone explain(Windows Application).



Thanks,
Anvesh
Posted
Updated 21-Jan-13 22:56pm
v2

You can quite easily do this via Javascript -
XML
<script>
document.getElementById("myframe").onload = function() {
  alert("myframe is loaded");
};
</script>
 
Share this answer
 
Comments
a.anvesh 22-Jan-13 4:56am    
can u please tell me in windows application.
Abhinav S 22-Jan-13 5:47am    
IFrame is a client side control...so you are not going to have an opportunity to do much on the server side.
Please review the following link

http://stackoverflow.com/questions/2777878/detect-webbrowser-complete-page-loading[^]

I think this is what you are looking for.

Happy Programming

:)
 
Share this answer
 
Comments
a.anvesh 22-Jan-13 5:09am    
sorry Avishek,

I tried that above link but am unable to find IFrame content data

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