send email
This commit is contained in:
9
js/custom.js
Normal file
9
js/custom.js
Normal file
@ -0,0 +1,9 @@
|
||||
document.getElementById("contact-form").addEventListener("submit", function(event) {
|
||||
event.preventDefault(); // Prevents form from submitting immediately
|
||||
|
||||
// Display the alert message
|
||||
if (confirm("Booking has been confirmed!")) {
|
||||
// If OK is pressed, redirect to another page
|
||||
window.location.href = "car-grid.php";
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user