8.14 Email Address Generator Web Page

In this section, we examine a web page that uses text controls for a person’s first and last names. In FIGURE 8.8, you can see what happens on that web page when the user clicks the Generate Email button. The underlying JavaScript code retrieves the text controls’ user-entered values and displays an email address that’s built with those values.

FIGURE 8.8 Email Address Generator web page—what happens after the user enters first and last names and what happens after the user clicks the Generate Email button ...

Get Web Programming with HTML5, CSS, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.