|
February 20, 2000 A Name Tracker Tips: February 2000
Yehuda Shiran, Ph.D.
|
|
The following script asks the user
for his or her name, and "remembers" the input. It then welcomes the user each
time he or she accesses the page, without asking again for the name. It's useful
to provide a button, or another mechanism, to let the user change the name (in
case several people are using the same machine, or in case the user has mistyped
his or her name).
Note that this script can be placed anywhere on the page. It welcomes the user by printing some text where you placed the script. Learn more about cookies in Column 8, Crispy JavaScript Cookies.
People who read this tip also read these tips: Look for similar tips by subject: |