http://mozillamemes.tumblr.com/post/24322890551/now-if-you-add-an-event-listener-that-sets-a
(not sure it applies here, though)