Form default behaviour is now skipped

This commit is contained in:
eoghan.conlon 2023-08-08 18:38:13 +01:00
parent a62cd89c2a
commit f42355c4a1

View file

@ -25,6 +25,7 @@
formEl.addEventListener('submit', (listener) => formHandler(listener)); formEl.addEventListener('submit', (listener) => formHandler(listener));
function formHandler(listener){ function formHandler(listener){
listener.preventDefault();
alert('Not implemented yet'); alert('Not implemented yet');
} }