This assignment will require the use of onUnload, an onMouseOver and an onMouseOut. What should happen is:
HTML file: | Displayed by browser: |
---|---|
<body onUnload="alert('Leaving so soon?')">
<a href="thanxalot.html" onMouseOver="window.status='Hello ' +navigator.appName+ ' user - Click here!'; return true" onMouseOut="window.status='You should leave ' +document.location+ ' right away'; return true">Here is the link</a> </body> |
Here is the link |