Answer the question
In order to leave comments, you need to log in
After the condition is met, the innerhtml image is displayed. How to make it so that when you click on it, the previously hidden text + another picture drops out?
After checking the condition, a picture is displayed
if ((name[ss]=='abc')&(rusname[sd]=='абв')) {
document.getElementById('img1').innerHTML = "<img src=\"img/abc.png" + "\" /> ";
}
<div id="img1"> </div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question