Javascript Cookies help required

Discussion in 'JavaScript' started by hansab, May 4, 2010.

  1. #1
    Please can someone help me.

    What i want is,

    I want first time visitor to show a message and then second time the message should not appear. Can anyone give me some code for that.

    Method:

    If user is new:

    HTML CODE WILL BE LOADED

    END IF


    NOTHING ELSE, THAT HTML CODE SHOULD NOT LOAD IF USER IS OLD. PLEASE HELP.

    THANKS
     
    hansab, May 4, 2010 IP
  2. eddieadams

    eddieadams Well-Known Member

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    106
    #2
    use the document.cookie function
     
    eddieadams, May 5, 2010 IP