Questions about cookies

Discussion in 'JavaScript' started by choward93, Dec 7, 2007.

  1. #1
    I have been doing some homework on cookie, how they work, etc. I was wondering, can you make a cookie that uses JS that can alter the appearence of a website? Can a cookie alone, once installed on the browser, do this or does there need to be more code to make it work? I found this script which sounds a little like what im talking about:

    http://javascript.internet.com/cookies/remove-ads.html
     
    choward93, Dec 7, 2007 IP
  2. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The cookie itself is just a small piece of information, it can't do nothing alone. What you need is to read it's value either on the server side, or on the client side using javascript, and make the necessary changes accordingly.
     
    hrcerqueira, Dec 7, 2007 IP
  3. ven123

    ven123 Banned

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cookie is just a file in which you can store information about the session or the user etc. You can do a lot of stuff with this information.
     
    ven123, Dec 8, 2007 IP
  4. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #4
    The property is read/write. The property has no default value

     
    temp2, Dec 8, 2007 IP
  5. choward93

    choward93 Active Member

    Messages:
    151
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    65
    #5
    Cool, thats what i wanted to know.
     
    choward93, Dec 9, 2007 IP