Question: I need help with the cookies, generate a random number and how to update the div text. Thank you! :) Coding Requirements Write code that
Coding Requirements Write code that will first check to see if a cookie exists when the page loads. If the cookie does not exist, show the correct text in the div and anchor elements (you may paste from the Document Text" section below). For example: Thank You for Choosing Sunrise Coffee Creations hl element div element anchor Figure I When the user clicks the anchor element to provide his/her name, display a prompt window asking for the user's name. When the user provides his/her name, store it in a cookie file (set to expire in 7 days), update the second div element with the appropriate "welcome" text, and remove the text from the anchor element. For example Thank You for Choosing Sunrise Coffee Creations sunrise Coffer Creations is a fanty-oubed establislment located Dols, TX we great senvice and geolucs we proide elcome Joe W'e hope you will anjoy your Coffee Creations exparience Updated div Figure 2 If the cookie does exist when the page loads, show the correct text in the div and anchor elements (you may paste from the "Document Text" section below), including the name from the cookie. For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
