New course! Every coder should learn Generative AI!
Try a free lessonQ&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
post your python code here)
3 Votes
Help with homework
0 Votes
please help me emotionally
1 Votes
Logical operator
1 Votes
While loop problem maybe?
2 Votes
Time
1 Votes