title: jQuery - trigger event when cookie contents change
body: <p>Let's say the cookie is called "CountDracula" and contains "1,2,3,4"</p>
  
  <p>Then I use some Javascript function (which hasn't been written yet) to change the cookie to "2,3,4" or "1,2,3,4,99" (add or subtract a digit)</p>
  
  <p>Can you trigger an event that the cookie updated (without reloading the page) to see the new contents of the cookie, even if it's just sending the updated contents to the console?  Essentially listen for cookie changes.  </p>
  
  <p>I just want to know if it's possible to make an event that detects the cookie has changed.  </p>
  
  <p>Update: Since I need a function to update the cookie anyway, updateCookie(), I can call my "cookieUpdated" code from there.  But I was hoping such an event would help me debug the updateCookie() function as I worked on it today, it would be cool to see the values change, verifying my code is working.  Maybe Firebug has the cookie value?  Now I'm thinking just make an alert in my updateCookie() function to show the contents of the cookie :-/</p>