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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, IHeartDarkSide03
Which is a false statement considering copyright law? a. when people upload something to the internet they automatically receive a copyright for the work b. the work does not have to contain a copyright notice to be considered having a copyright c. copyright is legal term describing rights given to the creators for literary and artistic works d. personal pictures are always covered by copyrights
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, jabezslade22
What is the first view you place in your drawing?
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, cristalcastro901
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, kayranicole1
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
You know the right answer?
Whats wrong with my code for .addEventListener Html code:

Don't Give Up

Ho...

Questions in other subjects:

Konu
Mathematics, 13.10.2020 15:01
Konu
Mathematics, 13.10.2020 15:01
Konu
English, 13.10.2020 15:01