subject

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;
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
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
question
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
question
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
question
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
You know the right answer?
Whats wrong with my code for .addEventListener Html code:

Don't Give Up

Ho...
Questions
question
English, 14.01.2020 12:31