I have a prompt box appear onLoad that asks for a persons name. I am trying to get the text in the page to say "Good Morning, ‘username’ ".
for the onLoad I want to use onLoad=“checkCookie()” but it won’t write the “message” with the name and will load a seperate page.
Basically what I am asking is how can I get the message + the name pulled from the cookie to display on the page?
var message = (depends on the time of day, Good Morning or Good Afternoon)
var username = (whatever the user puts in the prompt box)
[code][/code]