add before unload event to forms
Merge pull request #247 from GrabNetworks/auto809

add before unload event to forms