Good. Besides the fact that you should not trigger the event first .unload = FunctionNameand not .unload=FunctionName()that you need to pass event-argument, I checked the code in the browser.
currentTarget - , -, onclick, / .
, , :
window.onunload = HandleBackFunctionality;
function HandleBackFunctionality(event)
{
console.log(event, window.event);
}
, currentTarget ( ).