Answers for "image on load event"

3

javascript on image load

window.onload = function () {

        var logo = document.getElementById('sologo');

        logo.onload = function () {
            alert ("The image has loaded!");		
        };

        setTimeout(function(){
            logo.src = 'https://edmullen.net/test/rc.jpg';         
        }, 5000);
    };
Posted by: Guest on March-20-2020
10

javascript onload

<body onload="myFunction()">
Posted by: Guest on July-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language