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 AnswersHot today
Countdown Test
0 Votes
diary
1 Votes
what is empty tag
0 Votes
Could anyone fix this?
0 Votes
how do i create a code
0 Votes
Leecode?
2 Votes
Fitting
0 Votes