embed a picture from a link js

Solutions on MaxInterview for embed a picture from a link js by the best coders in the world

showing results for - "embed a picture from a link js"
Lucia
03 Sep 2019
1var img = new Image();
2img.src = 'image.png';
3img.onclick = function() {
4    window.location.href = 'http://putyourlocationhere/';
5};
6document.body.appendChild(img);
7