1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I display a cookie on a seperate page?

Discussion in 'JavaScript' started by Plutonic, May 31, 2009.

  1. #1
    Hey, I am trying to work out how to display a cookie on a seperate page.

    Here's my example.
    www.hostsx.net/javascript/page1.html

    It has three pages; page1, page2 and page3.

    Page2 creates a cookie and diplays how many times you've visited that page.
    I want page1 to display this too.

    Basically I need:

    Page2:
    Displays how many times you've visited Page2
    Page1:
    Displays how many times you've visited Page2
    Page3:
    Does nothing.

    Page 2 and 3 are complete, I just need to display how many times you've been on Page2 on Page1.

    Can anyone tell me how to do that?
    Thanks.
     
    Plutonic, May 31, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Use the same code you are using on page2, without the increment code.
     
    buldozerceto, May 31, 2009 IP
    Plutonic likes this.
  3. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you so much.
     
    Plutonic, May 31, 2009 IP