Add an ONUNLOAD attribute to your home page from Chapter 2. Within that attribute, place a call

Question:

Add an ONUNLOAD attribute to your home page from Chapter 2. Within that attribute, place a call to the alert function so that a farewell is displayed when the page unloads. For example, the alert window might display the message 'Thanks for visiting my page. Come back soon!'

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: