Chapter 14: Applied JavaScript

Return to Chapter 14

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

A Silly Name Generator

See it run: A Silly Name Generator

Script 14.10

This HTML creates the webpage where you can enter your real name and get your silly name.

Script 14.11

This JavaScript generates a silly name from two arrays, based on characters from the first and last names entered by the user.