Edit this page

up.layer up.popup.attach(anchor, [options])
JavaScript function

This feature has been deprecated. Use up.layer.open({ origin, layer: 'popup' }) instead.

Load unpoly-migrate.js to polyfill deprecated features.

Attaches a popup overlay to the given element or selector.


Parameters

anchor ElementorjQueryorstring

The element to which the popup will be attached.

[options] Object optional

See options for up.render().

Return value