I had a problem of writing a user name using cookies. <BR>I type in the following (only part of the function) :<BR><BR>if (username == null)<BR>{<BR> username = prompt("Please enter your name.");<BR> if (username != null)<BR> write_cookie ("username",username);<BR>}<BR><BR>My question is, "When the msgbox is prompt, I type in my name and press "OK", but it will still loop in this msgbox(i.e.msgbox is still shown). But I know that the computer has created a cookie for the user. How can this problem be solved? <BR><BR>Please kindly offer your suggestions. Thanks.<BR><BR> <BR>