|
|
ENABLING COOKIES WITH JAVASCRIPT |
Cookies are usually manipulated by server-side CGI programs, which can get pretty complicated at times. However, using JavaScript document.cookie property, we can store and examine cookies entirely on the client machine. This technique certainly helps to free up the server's resources and simplify the programming work required at the server-side.
You can see a demonstration of how JavaScript-enabled cookies work by clicking on the "Download Script" button. Your name and email will be stored as cookies on your computer at the same time as these data are sent to the server-side CGI program for processing. When you download another free script, your name and email will be inserted automatically in the respective fields on the form. |
DOWNLOAD FREE COOKIE JAVASCRIPT |
|
|