User Name | JavaScriptSource

User Name

JavaScriptSource Staff Jul 1, 1997


This cookie records the visitor's name. It can then be used for identification or other purposes, as needed.

Please enter your name:


  • Posted: July 01, 1997

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: userName.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


This is cool but wouldn't it be cool if they could store their username and password on their computer so we programers wouldn't have to use as much MySQL[br /]or SQL and server space?????

Taylor Apr 21, 2007

Wonderful, but wouldnt this be more useful if it was possible to populate a text field on another page with information stored in that cookie? What use is this?

JWWright Nov 29, 2006