Skip to content

Commit

Permalink
Update "Send Email" Button to Open Default Email Client
Browse files Browse the repository at this point in the history
Modify the "Send Email" button to open the user's default email client with the recipient's email address pre-filled.
  • Loading branch information
SaiTejaswaniBikkasani committed Jul 7, 2024
1 parent 44acf84 commit f185a74
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions faq.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<!DOCTYPE html>




<html lang="en">
<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -291,7 +287,7 @@ <h2>Have More questions?</h2>
<p>Feel Free to Email us!</p>
</div>
<div>
<button class="moreemail">Send Email</button>
<button class="moreemail" onclick="sendEmail()">Send Email</button>
</div>
</div>

Expand Down Expand Up @@ -367,6 +363,11 @@ <h2>Have More questions?</h2>
logoutButton.disabled = true;
}
});


function sendEmail() {
window.location.href = "mailto:[email protected]";
}
</script>
</body>
</html>

0 comments on commit f185a74

Please sign in to comment.