Still tinkering with document.cookie method

Interestingly, when code is run from the try-it editor from
w3schools.com, the cookies generate. However, if I copy and paste the
exact code into my test.html file, nothing is generated. This is
mind-boggling.