I give up........ help

if (document.cookie !== ""){
    document.getElementById("cool").innerText == "Welcome" + document.cookie.substring(9);
}

This does nothing, even though document.cookie isn’t “”

You need = not == here:

document.getElementById("cool").innerText == "Welcome" ...
2 Likes

oh ok ty

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.