Answers for "embed a picture from a link js"

0

embed a picture from a link js

var img = new Image();
img.src = 'image.png';
img.onclick = function() {
    window.location.href = 'http://putyourlocationhere/';
};
document.body.appendChild(img);
Posted by: Guest on April-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language