Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseMempel committed Sep 9, 2024
1 parent 675b8b5 commit f42552b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions inputFieldTest.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<form>
<input type="text" id="inputField">
<button id="inputButton"> alert input </button>
</form>
<script>
const inputButton = document.getElementById("inputButton");
const inputField = document.getElementById("inputField");
inputButton.addEventListener("click", function() {
alert(inputField.value);
});
</script>
</html>

0 comments on commit f42552b

Please sign in to comment.