How to change the text of this function script?:
window.onbeforeunload = function(e) { return 'Are you sure you want to leave this page? You will lose any unsaved data.'; };
i want to translate the text " 'Are you sure you want to leave this page? You will lose any unsaved data.' " so it can say the same but in my language... how to do it? Please help - thanks
(when i translate it, it doesnt change in the frontend). Thanks in advance guys!