Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Delete those cookies</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from older browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. if (document.cookie != "") { if (confirm("Do you want to delete the cookies?")) { thisCookie = document.cookie.split(";") expireDate = new Date expireDate.setYear(expireDate.getYear()-1) for (i=0; i<thisCookie.length; i++) { cookieName = thisCookie[i].split("=")[0] document.cookie = cookieName + "=;expires=" + expireDate.toGMTString() } document.write("<H1>Number of cookies deleted: " + thisCookie.length + "</H1>") } } // End hiding script --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> </BODY> </HTML>