Whats wrong with my code for .addEventListener
Html code:
Don't Give Up
Ho...
Computers and Technology, 21.07.2021 17:10 LILYTH8413
Whats wrong with my code for .addEventListener
Html code:
Don't Give Up
Home
TAKE ACTION
Fighters
a:link {
color: Blue;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: Purple;
background-color: transparent;
text-decoration: border;
}
a:hover {
color: black;
background-color: transparent;
text-decoration: underline;
}
a:active {
color: Blue;
background-color: transparent;
text-decoration: underline;
}
Extra Facts
Click Me
Java code:
var factList = [
"Mo", /*0*/
"ok", /*1*/
"oh", /*2*/
"shh"]; /*3*/
var fact = document. getElementById("fact");
var wind = document. getElementById('wind');
var count = 0;
wind. addEventListener('click', displayfact());
function displayfact(){
fact. innerHTML = factList[count];
count++;
if (count == factList. length){
count = 0;
}
}
Answers: 3
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
Answers: 1
Computers and Technology, 24.06.2019 22:30
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
Answers: 1
Computers and Technology, 24.06.2019 23:00
Systolic pressure is a measure of blood pressure when the ventricles relax and fil with blood ture or false
Answers: 1
Spanish, 14.01.2020 12:31
Social Studies, 14.01.2020 12:31
Mathematics, 14.01.2020 12:31
Social Studies, 14.01.2020 12:31
Health, 14.01.2020 12:31
History, 14.01.2020 12:31
Mathematics, 14.01.2020 12:31
Health, 14.01.2020 12:31
Physics, 14.01.2020 12:31
English, 14.01.2020 12:31
Business, 14.01.2020 12:31