Hi, I am very new too Javascript and I started reading the tutorial on this site... I really like the idea of the welcome cookie so I copied the code into notepad and edited it so as instead of it displaying as
alert("Welcome back '+username+'!")
(I have not included curly brackets for if statement) it would display as
document.write("Welcome back '+username+'!")
I hoped that this would make the message appear in the paragraph I wrote the html into (I am using the freewebs sitebuilder) but it meant that after I set the cookie i would get the message from the site, but on a blank page. Can someone point me in the right direction please?Also, I can't try it now (unless i cleared my cookies) but I am sure my alert box to set the cookie looked different, but maybe thats because I was using I.E to test.