Jquery Unload Event
.unload( handler(eventObject) )
handler(eventObject)A function to execute when the event is triggered.
.unload( [eventData], handler(eventObject) )
eventDataA map of data that will be passed to the event handler.
handler(eventObject)A function to execute each time the event is triggered.
handler(eventObject)A function to execute when the event is triggered.
.unload( [eventData], handler(eventObject) )
eventDataA map of data that will be passed to the event handler.
handler(eventObject)A function to execute each time the event is triggered.
<div id="mydiv" style="background-color: green; height: 110px;"> <img alt="Alternate Text" id="img1" src="https://www.google.co.in/logos/classicplus.png" /> </div>
jQuery(document).ready(function () { $(window).unload(function(){ alert(2); }); });Jquery Load Event
Jquery Unload Event
Reviewed by Bhaumik Patel
on
11:05 PM
Rating: