Spec-Zone.ru › jQuery

.unload()

.unload( handler )Returns: jQueryversion deprecated: 1.8, removed: 3.0

Description: Bind an event handler to the "unload" event, or trigger that event on an element.

  • version added: 1.0.unload( handler )

    • handler
      Type: Function( Event eventObject )
      A function to execute each time the event is triggered.
  • version added: 1.4.3.unload( [eventData ], handler )

    • eventData
      Type: Anything
      An object containing data that will be passed to the event handler.
    • handler
      Type: Function( Event eventObject )
      A function to execute each time the event is triggered.
  • version added: 1.0.unload()

    • This signature does not accept any arguments.

This API has been removed in jQuery 3.0.

Instead of .unload( handler ) or .unload( eventData, handler ), use .on( "unload", handler ) or .on( "unload", eventData, handler ), respectively.

Instead of .unload(), use .trigger( "unload" ).

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/unload-shorthand

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API