Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript cookie help

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34523
    Brightonmike
    Member

    Point me in the direction of a tutorial or whatever for a div box, handled by javascript, that shows when the user first visits a website but when they close it, sets a cookie remembering they closed it?

    I’ve tried Googling but it theows up stuff I don’t want.

    Cheers.

    #88065
    SgtLegend
    Member

    See the below link for information about setting and getting cookies in JavaScript

    http://www.quirksmode.org/js/cookies.html

    #88067
    Brightonmike
    Member

    Sorted :)

    #88083
    Mottie
    Member

    You might consider using HTML5’s local storage, it’s a heck of a lot easier to work with and doesn’t use cookies. Although, if your users have an older browser, it won’t work.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.