Safari Developer Library

Developer

SafariExtensionPopover Class Reference

Options
Deployment Target:

On This Page

SafariExtensionPopover

Inheritance


Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in Safari 5.1 and later.

The SafariExtensionPopover class represents popovers. You use popovers to present information temporarily. The popover content is layered on top of the existing web content in a special type of window.

  • identifier Property

    The unique identifier for the popover.

    Declaration

    JavaScript

    readonly attribute DOMString identifier

    Availability

    Available in Safari 5.1 and later.

  • visible Property

    A Boolean value that indicates whether the popover is visible.

    Declaration

    JavaScript

    readonly attribute boolean visible

    Availability

    Available in Safari 5.1 and later.

  • Hides the popover.

    Declaration

    JavaScript

    void hide ();

    Availability

    Available in Safari 5.1 and later.

  • contentWindow Property

    The DOM window object of the popover.

    Declaration

    JavaScript

    readonly attribute DOMWindow contentWindow

    Availability

    Available in Safari 5.1 and later.

  • height Property

    The height, in pixels, of the popover.

    Declaration

    JavaScript

    attribute unsigned int height

    Discussion

    If the value of this attribute is NaN or smaller than the popover’s frame, the minimum size is used instead.

    Availability

    Available in Safari 5.1 and later.

  • width Property

    The width, in pixels, of the popover.

    Declaration

    JavaScript

    attribute unsigned int width

    Discussion

    If the value of this attribute is NaN or is smaller than the popover’s frame, the minimum size is used instead.

    Availability

    Available in Safari 5.1 and later.