Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js display image from external url

$('#btn').on('click', function() {
    var img = $('<img />', {src : 'http://webpage.com/images/' + $('#imagename').val() +'.png'});
    img.appendTo('body');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #display #image #external #url
ADD COMMENT
Topic
Name
7+5 =