Feat. Form default behaviour bypassed

Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
eoghanconlon73 2023-08-27 16:30:00 +01:00 committed by Eoghan Conlon
parent a92bdbc921
commit ff10493be9

View file

@ -24,5 +24,10 @@
const formEl = document.getElementById("reset");
formEl.addEventListener('submit', (listener) => formHandler(listener));
function formHandler(listener){
listener.preventDefault();
alert("Default bypassed");
}
</script>
</body>
</html>