Q&A Discussions
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 Votes
7 AnswersFor this question
-2 Votes
4 AnswersIs it correct
-1 Vote
1 AnswerProject of school website
0 Votes
1 AnswerIām a Starter
-2 Votes
3 AnswersJavaScript Comments
0 Votes
2 AnswersWeb Question ?
0 Votes
1 AnswerDoubt regarding basics
0 Votes
1 AnswerHot today
Sticky position
3 Votes
Help please?
3 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes