Discussioni Q&A
What is wrong with this code?
-
-
<!Doctype html>
<head>
</head>
<body>
<form>
<input type="text" id="input">
</form>
<button type="button" id="button">Click here</button>
<script>
var input=document.getElementById("input");
var button=document.getElementById("button");
function display() {
if (button.clicked == true) {
console.log("input");
}
};
display();
</script>
</body>
0 Voti
7 RisposteFor this question
-2 Voti
4 Rispostehtml5
0 Voti
1 RispostaDoubt
1 Voto
3 RisposteIs it correct
-1 Voto
1 Rispostamy blog
0 Voti
2 RisposteIām a Starter
-2 Voti
3 RisposteJavaScript Comments
0 Voti
2 RisposteWeb Question ?
0 Voti
1 RispostaDoubt regarding basics
0 Voti
1 RispostaPopolare oggi
Python stressed me out
1 Votes
Course Doubt
1 Votes
Data analysis
0 Votes
Help
0 Votes
How do i make a lexer and parser
1 Votes
Saved code
0 Votes