Feat. Javascript listener set up

This commit is contained in:
Eoghan Conlon 2023-08-27 16:27:34 +01:00
parent b24f055aa1
commit a92bdbc921

View file

@ -20,6 +20,9 @@
<script> <script>
document.getElementById('year').textContent = new Date().getFullYear().toString() document.getElementById('year').textContent = new Date().getFullYear().toString()
</script> </script>
<script>
const formEl = document.getElementById("reset");
formEl.addEventListener('submit', (listener) => formHandler(listener));
</body> </body>
</html> </html>