From ff10493be97f0149973addf8b525e22e55cab2a0 Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Sun, 27 Aug 2023 16:30:00 +0100 Subject: [PATCH] Feat. Form default behaviour bypassed Signed-off-by: Eoghan Conlon --- src/recovery/reset.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/recovery/reset.html b/src/recovery/reset.html index 2409949..a35d698 100644 --- a/src/recovery/reset.html +++ b/src/recovery/reset.html @@ -24,5 +24,10 @@ const formEl = document.getElementById("reset"); formEl.addEventListener('submit', (listener) => formHandler(listener)); + function formHandler(listener){ + listener.preventDefault(); + alert("Default bypassed"); + } + \ No newline at end of file