*****************#####*****************
JS Code:
window.onload = showCookies;
function showCookies() {
var outMsg = "";
if (document.cookie == "") {
outMsg = "There are no cookies here";
}
else {
var thisCookie = document.cookie.split("; ");
for (var i=0; i<thisCookie.length; i++) {
outMsg += "Cookie name is '" + thisCookie[i].split("=")[0];
outMsg += "', and the value is '" + thisCookie[i].split("=")[1] + "'<br />";
}
}
document.getElementById("ELEMENT ID").innerHTML = outMsg;
}
*****************#####*****************
Edited by Roger, 01 January 2011 - 06:05 PM.
removed links


Sign In
Create Account

Back to top









