title: jQuery plugin for preventing users leaving a page with unsaved data with a dialog?
body: <p>I'm using jQuery 1.4.4 and I'm trying to find a plugin that will warn users when navigating away from a form with unsaved changes.  I attempted to code it myself, but ran into issues with window.beforeunload and IE 8. </p>
  
  <p>I need it to not have a restrictive license like GPL as this will be a commercial app and free if possible.</p>
  
  <p>Afermath: I ended up using the <a href="http://mal.co.nz/code/jquery-dirty-forms/" rel="nofollow">dirty forms plugin</a> after getting past a configuration issue thanks to help from their team.</p>