Submitted over 1 year ago
Newsletter Sign-Up with Success Message - using CSS Flexbox and JS DOM
@SimonaPiz
Design comparison
SolutionDesign
Solution retrospective
Feedback welcome.
I finished the project but I'm not sure of the JavaScript logic I used to add the mail to the success message.
// Grab values from the submitted form in the URL const email = new URLSearchParams(window.location.search).get('email'); //console.log(email); // Populating the span element const span = document.getElementById("signed-email"); span.innerText = email;
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord