How to write cookies in JavaScript

{0 Comments}

Writing or setting the cookies using JavaScript is simple. You need use document.cookies command then after equal sign write cookies name and then cookies value after an equal operator as shown in the following code snippets

 Javascript |  copy code |? 
1
Document.cookies=cookiesname=cookiesvalue;

Leave a Comment

Your email address will not be published.