SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot ant1832's Avatar
    Join Date
    Apr 2002
    Location
    Tucson, AZ
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there anyway I can check to see if a url has change and if so alert.

    I would like to create a page that will refresh itself every 30 seconds or so, but I was hoping to be able to show an alert if the page has changed since last refresh. Is this possible?

    Thanks in advance
    Anthony
    Anthony

  2. #2
    Must try harder! linmed01's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure exactly how you would do it but I think this could be done with a cookie perhaps. You could store some kind of variable in the cookie and compare it to the reloaded page, if the to don't match alert()! Just an idea.

  3. #3
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See what you can do with this:

    http://www.quirksmode.org/js/lastmod.html
    ::: certified wild guess :::


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •