HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Do the following</p> <p>Go to Developer tools (Press 12).</p> <p>Navigate to Application tab.</p> <p>Try to find cookie section on the left side menu and click expand button.</p> <p>Click on 'https://wikimass.com'.</p> <p>Now you can find the 'name' and the 'value' of cookie we created.</p> <script> // set a cookie var name = "The Jungle Book"; document.cookie = "movie="+name+";path=/"; // Read all cookie allcookie = document.cookie; console.log(allcookie); </script> <p><strong>Note</strong>: Meanwhile, check your console.</p> </body> </html>
OUTPUT
×

Save as Private