Event occurs before form reloading with different data, when data in existing form was changed but not saved
Parameters for inputs:
myform.attachEvent("onDirty", function (id){ //any custom logic here return true; });
Event is blockable. Returning false will prevent form reloading.