There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

if-focus-last

Syntax

if-focus-last: selector;

This conditional will return true if the last element found in the selector set is focused on the page.

selector set = Any CSS selector that will return more than one item. It will work with just one item, but it is designed for multiple items in the selector set.

For example, this conditional will return true if the last item in the ".srch-Res a" selector set has the focus of the page.

@conditional srchFocusLast {
    if-focus-last: .srch-Res a;
}

.srch-Res a:srchFocusLast:keydownArrowDown {
    console-log: "You have reached the end of the list.";
}