From defb042e95209515cbc1cd71e592a92a22942ccb Mon Sep 17 00:00:00 2001 From: KIRAN B <94750356+Kiran18b@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:27:59 +0530 Subject: [PATCH] Create script.js --- script.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..d332b16 --- /dev/null +++ b/script.js @@ -0,0 +1,5 @@ +document.getElementById("contactForm").addEventListener("submit", function(event) { + event.preventDefault(); + alert("Thank you for your message! We will get back to you shortly."); + document.getElementById("contactForm").reset(); +});