From 394a6290d3dbcd48e86c87806f43b16109866664 Mon Sep 17 00:00:00 2001 From: SanjayPrabhakaran Date: Tue, 20 Aug 2024 17:04:31 +0530 Subject: [PATCH] document cookie --- SJPv6/www/sjp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SJPv6/www/sjp.js b/SJPv6/www/sjp.js index 461e530..3ff831c 100644 --- a/SJPv6/www/sjp.js +++ b/SJPv6/www/sjp.js @@ -1409,7 +1409,6 @@ function setCookie(cname,cvalue,expiredays){ d.setTime(d.getTime() + (expiredays*24*60*60*1000)); let expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires ;//+ ";path=/"; - alert(document.cookie) //return value; } //////////////////////////////////////////////////////////////////////// @@ -1773,7 +1772,7 @@ function setDefaults(){ setCookie("longitude",document.getElementById('longitude').value,9999999); setCookie("latitude",document.getElementById('latitude').value,9999999); setCookie("placename",document.getElementById('placename').value,9999999); - alert("Set Current Location as default"); + alert("Set Current Location as default\n"+document.cookie); } function JHDtz2Dec(zone) {