I successfully disabled autosaving drafts on Wordpress 4.3 by using the code wp_dequeue_script('autosave')
.
However, I noticed that the window with leave confirmation message:
Are you sure you want to leave this page without saving...
is no longer showing up and I would like it to remain. I'm trying to understand how this alert window is connected to the autosave function in Wordpress.
You can see an example of this alert window here.
Any assistance would be greatly appreciated.