if (document.cookie !== ""){
document.getElementById("cool").innerText == "Welcome" + document.cookie.substring(9);
}
This does nothing, even though document.cookie isn’t “”
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" ...
oh ok ty
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.