javascript image is loaded function 3f

Solutions on MaxInterview for javascript image is loaded function 3f by the best coders in the world

showing results for - "javascript image is loaded function 3f"
Rhys
21 Feb 2016
1if (img.complete) {
2  //img has already loaded
3} else {
4     img.onload = function(){
5		//do something when image loads
6     }
7}