jQuery Tutorial


jQuery Example


jQuery References


jQuery unload() Event Reference


  jQuery Events References


Uses

jQuery unload() event Occurs when documents is unloaded.


Syntax

$(selector).unload(function)

jQuery unload() events supported following parameters.

ParameterDescription
functionFunction is Optional parameter. Function define the ready to run when event occur.

Example

<script type="text/javascript"> 
$(document).ready(function(){
  $(window).unload(function(){
    alert("Close this window to show Me Unload Event occur..!");
  });
});
</script>
Online Try This Code Your Self....   »

  jQuery Events References