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, 22.06.2019 01:00, toottoot42169
What can you find the under the privacy policy section of a shopping website?
Answers: 1
Computers and Technology, 22.06.2019 01:10, shimmerandshine1
When you reach a yield sign, yield to cross traffic and before you enter the intersection. a. flash your headlights b. wait for a signal c. wait five seconds d. wait for a safe gap
Answers: 1
Computers and Technology, 22.06.2019 10:00, QueenKy9576
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
Social Studies, 25.12.2021 03:10
Advanced Placement (AP), 25.12.2021 03:10
Computers and Technology, 25.12.2021 03:10