{ e.preventDefault(); const inputVal = input.value; }); You can study and learn programming as you wish in the content of this website. ">
const form = document.querySelector(".top-banner form");
form.addEventListener("submit", e => {
e.preventDefault();
const inputVal = input.value;
});