JavaScript cookies are stored in the document.cookie object and are created by assigning values to this object. When creating a cookie, you typically specify a name, value, and expiration date and time for that cookie. The cookie will then be accessible in your scripts every time the user returns to your site until the cookie expires. These cookies will also be sent to your server every time the user requests a page from your site. The simplest way to create a cookie is to assign a string value to the
document.cookie object, which looks like this:
name=value;expires=datedocument.cookie object, which looks like this:
video of basic javascript
No comments:
Post a Comment