Select Chapter ❯
JavaScript Tutorial
Javascript Cookies
Cookies are used to store information on user device like computer, mobile phones etc. You can store create cookies, access cookies and delete cookies.
You can set as many Cookies as you want.You can also set cookies with the help of PHP.
Create Cookies
Syntax
Example of Creating Cookies
Read Cookies
document.cookie statement will give all the cookies into allcookies variable.
Then It display all the cookies like this name=Rahul; course=BCA;
Delete Cookies
You can delete the cookie by setting that keyname and set the expires value to the passed date.
This will delete the name cookie and course cookie.
❮ PreviousNext ❯