python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
onclick running when page loads
I have some code in javascript that I just want the object to change when I click on it, but it runs the code as if I have already clicked on the object as soon as the page loads
"use strict"...
Xavier.code
Votes: 0
Answers: 1
How do I set an on click event for every cell that calls a function which takes id of cell as a parameter in JavaScript
Here I created a table and assigned each cell an id. What I want to do is something like this cell1.onclik = MyFunction(this.id);
function createTable() {
var table = document.getElementById(&...
bruh
Votes: 0
Answers: 1
How do I change amount of game moves for different game difficulties?
I'm very new to Javascript and have made a game of rock paper scissors. The game itself works but is never ending. I have attempted to add varying degrees of difficulty by having different moves allow...
AriRix1410
Votes: 0
Answers: 1
Open a new Activity with chosen Fragment on click
this is what I want to achieve:
I'm in Activity A with couple options to choose from (buttons)
after clicking any of them, I want to be taken to Activity B
Activity B should contain a constant part (...
Lucyna Min
Votes: 0
Answers: 1