Good morning.
My site uses jQuery, but I need to add a code that sends a confirm()
to close the browser, but I realized that it only works with the library mootools :
window.addEvent('load', function () {
window.onbeforeunload = function (e) {
e = e || window.event;
// For IE and Firefox prior to version 4
if (e) {
e.returnValue = 'Any string';
}
// For Safari
return 'Any string';
};
});
Is it okay to add this library? Can it end up interfering with% d of%?