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
Activities on sololearn
7 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
What am I doing wring?
1 Votes
App development đ„âïž
1 Votes
Computer architecture
1 Votes
Playground input
1 Votes