Skip to content

Commit

Permalink
script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BVPKARTHIKEYA authored Oct 8, 2024
1 parent edf702e commit 8915eaf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,12 @@ document.getElementById("contactForm").addEventListener("submit", function(event
function navigateTo(url) {
window.location.href = url;
}
document.getElementById("contactForm").addEventListener("submit", function(event){
event.preventDefault(); // Prevents the form from submitting normally

// Display a simple popup message after submission
var popup = document.getElementById("popup");
popup.innerHTML = "Thank you for contacting us!";
popup.style.display = "block";
});

0 comments on commit 8915eaf

Please sign in to comment.