Plugin to check when the mouse pointer is out of the viewport

The code below...

<!-- Message -->
<a href="#" class="alert">Delete Page</a>

<script>
// Finally call the script
$(function(){
    $('.alert').cw-abandon-mouse-tracker();
});
</script>

... produces this

Delete Page
Property Type Default Description
message string Are you sure? The message which is displayed in the alert window.

Below are some more examples of the script.

v1.0.0 Created the first version of the script based on previous created scripts.