Instance Method

createPopover

Creates and returns a new popover.

Declaration

SafariExtensionPopover createPopover(in DOMString identifier, in DOMString url, in unsigned long width, in unsigned long height);

Parameters

identifier

The unique identifier for the popover.

url

The URL of the content displayed in the popover.

width

The width, in pixels. This parameter is optional; the default value is 400.

height

The height, in pixels. This parameter is optional; the default value is 300.

Return Value

The new popover object.

Discussion

The URL of the content displayed must begin with safari-extension:, and it must be a resource in the extension’s bundle.

If identifier is not unique, an exception is thrown.

See Also

Working with Popovers

popovers

All of the popovers of an extension.

removePopover

Removes the specified popover.