Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Sunday, February 6, 2011

javascript checking if image is fully loaded

img = new Image();
img.src = "path_to_your_image.jpg";
img.onload = function() { some_action();};