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, 20.06.2019 18:02
If your computer starts up slow, what is the best reason why?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
You know the right answer?
Whats wrong with my code for .addEventListener Html code:

Don't Give Up

Ho...
Questions
question
Social Studies, 12.11.2020 04:50
question
Mathematics, 12.11.2020 04:50
question
Mathematics, 12.11.2020 04:50
question
Mathematics, 12.11.2020 04:50
question
History, 12.11.2020 04:50
question
Mathematics, 12.11.2020 04:50
question
Mathematics, 12.11.2020 04:50
Questions on the website: 13722363