See also: readCookie, setCookie |
Function used to delete a cookie.
JSV_killCookie(name [, path, domain]);
n/a
The JSV_killCookie does not return a value.
The JSV_killCookie function uses the following arguments.
Argument | Description |
name | A sequence of characters excluding semicolon, comma and white space. To place restricted characters in the name or value, use an encoding method such as URL-style %XX encoding. |
path | Specifies the URLs in a domain for which the cookie is valid. Remember that the path must be supplied if it was set with the cookie. |
domain | Specifies the domain attributes for a valid cookie. Remember that the domain must be supplied if it was set with the cookie. |
n/a
n/a
The following lines of code
var cookie_Name = "JavaScriptVision";
JSV_killCookie(cookie_Name);
var displayText = JSV_readCookie(cookie_Name) ?
"You are visiting the JavaScript Vision Library!" :
"You have not visited the JavaScript Vision Library at this time." );
document.write( displayText );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.