Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library


Category: Javascript Codes Library >> Alerts >> Alert onUnload event handler

Code Snippet </> Info

Snippet Name: Alert onUnload event handler

Description: Show an alert message when a visitor exits your web page.

Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Note: Replace
'Thanks for visiting'
with your own message.

Author: SnapBuilder <>

Last Modified: 2015-12-13 06:21:09

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor

  About Copying
Copied To Clipboard!

<html> <head> <title>Alert onUnload event : on page exit alert message</title> </head> <body onUnload="window.alert('Thanks for visiting')"> [ YOUR CONTENT GOES HERE ] </body> </html>

[ Snippet Options ]


© 2002 -  Snap Builder Public Codes Library