I have used two js files
<script type="text/javascript" src="js/areyousure/areyousure.js"></script>
<script type="text/javascript" src="js/areyousure/ays-beforeunload-shim.js"></script>
<script>
$(document).ready(function(){
$("form").areYouSure();
});
</script>
The above is working only if any of the form input is changed.. I have a dual list box in my page. If I select one of the text and press back button the alert is not working.
Is there any solution for this ?
I have already used onbeforeunload
. It did not work. There are some issues with it. Is there any other solution to solve this problem?
The back button is working only if there is change in form. If I have pop ups and pickers it's not working.