When the user entering some data into the form and for some reason ,clicks a button or tab that will automatically navigate away from the form without giving any alert or without saving the date into the form. we can able to fix these kind of scenarios by using simple java scripts
Warn on unsaved Changes
Step 1: Create a Global Page as “Zero” and also create a Static Content Region
Place the below sample code into the Static Content Source Section
Step2: Create a Dynamic action and set when “Event” condition as “Change”.
jQuery Selector : .a-TreeView-node–leaf