In the admin panel of WordPress, when writing a blog post which is unsaved, it will ask 'Are you sure you wanna leave this page?' when trying to leave.
I have been searching google and the source of wordpress, but i cant find the code anywhere.
Could someone find it for me?