Relative Content

Tag Archive for javascripthtml

Is there a way to make a different function happen after every single click on the document in js?

Im trying to make a gaming website in which when the user first signs in, they are greeted by two show lights that shine down on words that say: “WELCOME TO COSMIC GAMES!” I want to make it interactive, so I’ve been trying to make it so that when the user clicks anywhere on the document, it displays one of the words. I already got the first word, the problem, though is trying to call the second function to light up the second word without calling the first function.

Is there a way to make a different function happen after every single click on the document in js?

Im trying to make a gaming website in which when the user first signs in, they are greeted by two show lights that shine down on words that say: “WELCOME TO COSMIC GAMES!” I want to make it interactive, so I’ve been trying to make it so that when the user clicks anywhere on the document, it displays one of the words. I already got the first word, the problem, though is trying to call the second function to light up the second word without calling the first function.

Is there a way to make a different function happen after every single click on the document in js?

Im trying to make a gaming website in which when the user first signs in, they are greeted by two show lights that shine down on words that say: “WELCOME TO COSMIC GAMES!” I want to make it interactive, so I’ve been trying to make it so that when the user clicks anywhere on the document, it displays one of the words. I already got the first word, the problem, though is trying to call the second function to light up the second word without calling the first function.

Is there a way to make a different function happen after every single click on the document in js?

Im trying to make a gaming website in which when the user first signs in, they are greeted by two show lights that shine down on words that say: “WELCOME TO COSMIC GAMES!” I want to make it interactive, so I’ve been trying to make it so that when the user clicks anywhere on the document, it displays one of the words. I already got the first word, the problem, though is trying to call the second function to light up the second word without calling the first function.