iframe onload event
Introduction:-
This article describe; How to add onload event on iframe? This help to perform some action once iframe get load.
For example; on button click i display loading image and as soon as iframe content loads ; i hide loading image.
Detail:-
You define onload event on iframe as below example:-
And then write javascript as below mention:-
1 2 3 4 5 6 7 | <script type="text/javascript"> function iframeonload(){ alert("Iframe loaded"); // here actually i write code to make loading image invisible. } </script> |
Thanks!
Avinash
July 21, 2012
В·
Infoyen В·
2 Comments
Tags: asp, javascript В· Posted in: ASP .NET, JavaScript
2 Responses
Thanks very nice information!
Thank you. very nice. It helps!
Leave a Reply