up.layer up.modal.follow(linkOrSelector, [options])
JavaScript function

This feature has been deprecated. Use up.follow(link, { layer: "new modal" }) instead.

Load unpoly-migrate.js to polyfill deprecated features.

Opens the given link's destination in a modal overlay.


Parameters

linkOrSelector
required

The link to follow.

Type: Element | jQuery | string
[options]
optional

See options for up.render().

Type: string

Return value

A promise that will be fulfilled when the modal has been opened.

Type: Promise