Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
You can make an image in HTML, set its visibility to hidden, then make it appear when a certain event happens; or you can do it entirely in JS, but it's kind of stupid: let img = document.createTag("img"); img.src = "src"; ing.alt = "alternative"; document.getElementsByTagName("body")[0].append(img);
14th Jun 2019, 4:32 AM
Airree
Airree - avatar