
Vader |
The JavaScript onUnload event handler is useful to provide users with messages or options when they are leaving your page. For example you may want to display a message to your users informing them about a promotion or something else when they are leaving your page.
The code to achieve this can be accomplished using the following code:
<body onUnload="alert('Message you want to show user goes here.')">
Vader.
Thursday, 14th January 2010
| Votes: |
|
14 |
|
12 |
|