Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkar009 authored Jan 20, 2025
1 parent 05f43d4 commit bb92f12
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ window.addEventListener("blur", () =>{
});
window.addEventListener("focus", () => {
document.title = docTitle;
});
});

function clearForm() {
document.getElementById("name").value = "";
document.getElementById("email").value = "";
document.getElementById("message").value = "";
}

function submitForm() {
clearForm();
alert("Thank you for your response!");
}

0 comments on commit bb92f12

Please sign in to comment.