How to use: beforeunload but NOT for button: id="btnSave" and..
really work fine:
$(window).bind('beforeunload', function() {
return 'Really want leave the page?' ;
});
but i have a button with id btnSave when user press this button i want not display the message
'Really want leave the page?'
And how to Personalize the messages(translate to Spanish) thanks