CS511 Solution 30 April 2024
CS511 Solution 30 April 2024
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Contact Form</title>
</head>
</div>
</div>
<div style="margin-bottom: 15px;">
</div>
</form>
</div>
</div>
<div style="background-color: #4CAF50; color: white; padding: 20px; border-radius: 10px; max-
width: 400px; margin: 20px auto;">
<p style="text-align: center; margin: 10px 0;">Your message has been submitted successfully.</p>
</div>
</div>
<script>
function submitForm(event) {
thankYouMessage += "<p style='text-align: center; margin: 10px 0;'>Your message has been
submitted successfully.</p>";
thankYouMessage += "</div>";
document.getElementById("contactFormContainer").style.display = "none";
document.getElementById("thankYouContainer").style.display = "block";
document.getElementById("thankYouContainer").innerHTML = thankYouMessage;
</script>
</body>
</html>