If you want a single hangman puzzle on your page, including the following HTML. This will create a hangman puzzle for the word hangman. You can use whatever you want in place of the boldface word.
<center> <script src=http://www.cs.cmu.edu/~cburch/hang/hang0.js> </script> <img name=status src=http://www.cs.cmu.edu/~cburch/hang/hang00.gif> <form name=output> <input type=hidden name=word value=hangman> <table> <tr><th>Word:</th><td><input name=blanks onFocus="document.input.guess.focus()"></td></tr> <tr><th>Guessed:</th><td><input name=guesses onFocus="document.input.guess.focus()"></td></tr> </table> </form> <form name=input onSubmit="return hangGuess()"> <table> <tr><th>Guess:</th><td><input size=1 name=guess></td></tr> <tr><td colspan=2 align=center><input type=submit value="Guess"></td></tr> </table> </form> <script> <!-- hangRestart(); // --> </script> </center>
This HTML results in the following.
Perhaps you prefer your page to use a dictionary of several possibilities. See the next page for how to do this.