Safari Developer Library

Developer

SafariValidateEvent Class Reference

Options
Deployment Target:

On This Page

SafariValidateEvent

Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in Safari 5.0 and later.

Instances of the SafariValidateEvent class encapsulate a validate event. User interface elements such as contextual menu items and toolbar buttons send a validate event when they are about to display. You can prevent the element from displaying by listening for validate events and marking the element as disabled.

The event type for this class is validate.

  • command Property

    The command identifier of the target being validated.

    Declaration

    JavaScript

    readonly attribute DOMString command

    Availability

    Available in Safari 5.0 and later.