document.addEventListener("DOMContentLoaded", function() {
// Show the popup form when the page loads
var popup = document.getElementById("popup-form");
popup.style.display = "flex";
// Close the popup when the close button is clicked
document.getElementById("popup-close").onclick = function() {
popup.style.display = "none";
};
// Handle form submission
document.getElementById("wpforms-form-2325").onsubmit = function(event) {
event.preventDefault(); // Prevent the default form submission
// After form submission, hide the popup
popup.style.display = "none";
// Show a thank you message (can be customized)
alert("Thank you for your submission! We will get back to you shortly.");
// Redirect to the homepage after a short delay (optional)
setTimeout(function() {
window.location.href = "/"; // Redirect to homepage
}, 2000); // 2-second delay before redirect
};
});
websystemsug.com
Typically replies within minutes
How best can we serve you today?, We're so eager to work with you.