jQuery unload()The jQuery unload() method is used to unload a specific element. It attaches an event handler to unload event. The unload event is sent to the window element when the user navigates away from the page. It was deprecated in jQuery 1.8 version of jQuery library. Ways to trigger unload eventAn unload event is triggered if you:
Syntax: It adds a function to the unload event. Parameters of jQuery unload() event
Example of jQuery unload() eventLet's take an example to demonstrate jQuery unload() event. Test it NowNext TopicjQuery delegate() |