How can I do to appear the image, video or something with html and Js when the button on click? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I do to appear the image, video or something with html and Js when the button on click?

https://code.sololearn.com/WcXQaLuhcIX7/#js < this is my code playground > Is it possible? by using the Image to appear this image on click button. 'https://tse3.mm.bing.net/th?id=OIP.hZTKhbXe4SqXSt_vZmwJagHaER&pid=15.1&P=0&w=286&h=166', 'https://tse2.mm.bing.net/th?id=OIP.2aZiKcnPlYq6cIQFY1DcIgHaE7&pid=15.1&P=0&w=251&h=168', 'https://tse1.mm.bing.net/th?id=OIP.XEWdTyTdzkRzUkyb1bzhJgHaEz&pid=15.1&P=0&w=258&h=168', Please help me becz I don't know how can write this code!

13th Jul 2018, 3:49 PM
Mýîñț Hțõø
Mýîñț Hțõø - avatar
2 Answers
+ 4
➡ here you go, simple example 👇 https://code.sololearn.com/Wcm1JKM3PazM/?ref=app
13th Jul 2018, 4:08 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
innerHTML
13th Jul 2018, 8:50 PM
Bebida Roja
Bebida Roja - avatar