All you have to do is insert this into the head of your document:
var name=prompt("What is your name?","");
Then this whereever you want the name displayed in the document:
Script by Evan Nemerson
©2000 All Rights Reserved
You may use this script as long as you leave all comments and copywrite
information intact as is.