0
I need to make a border appear and disappear every time I click. I can’t use jQuery or eventlist. I know I should use IF but I don’t know how. What I can do so far is click and make it appear. It should be around the paragraphs. I appreciate your help
var elements = document.getElementsByTagName("p");
for (var i = 0; i < elements.length; i++){
elements[i].onclick=function(){
this.style.border="dashed black 1px";
}
}
She must disappear when? A certain time after appearing?
– Woss