Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

document cookies javascript

cookieData=document.cookie.split("; ");

for(let i=0; i<cookieData.length; i++){

  cookieData[i]=cookieData[i].split("=");
  cookieName=cookieData[i][0];
  cookieValue=cookieData[i][1];

  //write your cookie name which you want to see in the place of 'mobNo'
  if(cookieName==='mobNo'){
    console.log(cookieData[i]);
  }
}
 
PREVIOUS NEXT
Tagged: #document #cookies #javascript
ADD COMMENT
Topic
Name
3+1 =