Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #embed #picture #link #js
ADD COMMENT
Topic
Name
7+1 =