From 077cc558d08f5aa558440b72622c7b7fbee1fc42 Mon Sep 17 00:00:00 2001 From: Robert <152218269+PenguinRobert1@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:45:56 +0000 Subject: [PATCH] 1 --- Contact.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Contact.js b/Contact.js index e69de29b..13a00144 100644 --- a/Contact.js +++ b/Contact.js @@ -0,0 +1,12 @@ +document.getElementById('contactForm').addEventListener('submit', functie(gebeurtenis) { + gebeurtenis.preventDefault(); + const naam = document.getElementById('naam').value; + const email = document.getElementById('email').value; + const bericht = document.getElementById('bericht').value; + + als (naam && e-mail && bericht) { + document.getElementById('statusMessage').textContent = 'Bedankt voor uw bericht, ' + name + '! We nemen zo snel mogelijk contact met u op.'; + } anders { + document.getElementById('statusMessage').textContent = 'Vul alle velden in.'; + } + }); \ No newline at end of file