Form default behaviour is now skipped
This commit is contained in:
parent
a62cd89c2a
commit
f42355c4a1
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue