Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Newsletter Sign-Up with Success Message - using CSS Flexbox and JS DOM

@SimonaPiz

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

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 GitHub
Discord logo

Join 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