forked from apu52/Travel_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update "Send Email" Button to Open Default Email Client
Modify the "Send Email" button to open the user's default email client with the recipient's email address pre-filled.
- Loading branch information
1 parent
44acf84
commit f185a74
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
<!DOCTYPE html> | ||
|
||
|
||
|
||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
|
@@ -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> | ||
|
||
|
@@ -367,6 +363,11 @@ <h2>Have More questions?</h2> | |
logoutButton.disabled = true; | ||
} | ||
}); | ||
|
||
|
||
function sendEmail() { | ||
window.location.href = "mailto:[email protected]"; | ||
} | ||
</script> | ||
</body> | ||
</html> |