SyntaxFix
Write A Post
Hire A Developer
Questions
Here is jQuery equivalent:
var $img = $('img'); if ($img.length > 0 && !$img.get(0).complete) { $img.on('load', triggerAction); } function triggerAction() { alert('img has been loaded'); }