IE8 and earlier used a global event object to hold information about the current event. Other browsers including recent versions of IE pass the current event object as a parameter.
The current event object is often given the variable name “e” but you can call it whatever you like.
You don’t need to include it if you don’t need to reference the current event object.
You’d be unlikely to use it with a beforeUnload event as there you know what object triggered the event.
If you has a click event attached to the entire page then you could use the event object to determine which element in the page was clicked on and process differently depending on what was clicked without having to separately attach a click event to each element.