Edit this page

API Linking to fragments
module up.link

Topics

Essential features

All features

HTML
a[up-dash] deprecated

Follows this link as fast as possible.

HTML
a[up-follow] stable

Follows this link with JavaScript and updates a fragment with the server response.

HTML
a[up-instant] stable

Follows this link on mousedown instead of click.

HTML
a[up-preload] stable

Preloads this link when the user hovers over it.

JS
up:click stable

A click event that honors the [up-instant] attribute.

HTML
[up-clickable] experimental

Enables keyboard interaction for elements that represent links or buttons.

HTML
[up-expand] stable

Add an [up-expand] attribute to any element to enlarge the click area of a descendant link.

JS
up.follow(link, [options]) stable

Follows the given link with JavaScript and updates a fragment with the server response.

HTML
[up-href] stable

Makes any element behave like a hyperlink.

JS
up.link.config stable

Configures defaults for link handling.

JS
up:link:follow stable

This event is emitted when a link is followed through Unpoly.

JS
up.link.followOptions(link, [options]) stable

Parses the render options that would be used to follow the given link, but does not render.

JS
up.link.isFollowable(link) stable

Returns whether the given link will be followed by Unpoly instead of making a full page load.

JS
up.link.isSafe(link) stable

Returns whether the given link has a safe HTTP method like GET.

JS
up.link.makeFollowable(link) experimental

Makes sure that the given link will be followed by Unpoly instead of making a full page load.

JS
up.link.preload(link, options, [options]) stable

Preloads the given link.

JS
up:link:preload stable

This event is emitted before a link is preloaded.