Multiple choice technology programming languages

onUnload event of Javascript is fired in which of the following conditions

  1. When browser is closed

  2. When the page reloads as well.

  3. Only when you navigate out of the page.

  4. All Of the Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The onunload event is triggered when the document is being unloaded from the browser. This includes closing the browser window, reloading the current page, or navigating to a new webpage. Since all these actions trigger the unload sequence, 'All Of the Above' is the correct choice.