Skip to content

Commit

Permalink
solved issue #525
Browse files Browse the repository at this point in the history
  • Loading branch information
Devanshu1603 committed Oct 15, 2024
1 parent 75c9ac2 commit 2840976
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Html-files/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,16 @@ <h4 style="font-family: var(--ff-philosopher);color: hsl(203, 30%, 26%);">Follow
</body>
<script>

const form = document.getElementById('contact-form');
form.addEventListener('submit', function(event) {
event.preventDefault();
// Display an alert
alert('Your message was sent successfully!');

// Clear the form fields
form.reset();
});

function redirectLogin() {
window.location.href = "Html-files/login.html";
}
Expand Down

0 comments on commit 2840976

Please sign in to comment.