Edit this page

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

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

Load unpoly-migrate.js to polyfill deprecated features.

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


Parameters

linkOrSelector ElementorjQueryorstring

The link to follow.

[options] string optional

See options for up.render().

Return value

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