There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.Close
This may take a few seconds.



if-inner-html: selector "string";

This conditional action will return true if the specified selector contains the specified string as its innerHTML.

selector = The selector you want to check. This can be any valid CSS selector that will return one result. If more than one result is gotten from the selector, the first one will be chosen. As will all the conditional selector references, you can use "me", "self", or "this" to reference the event selector.

string = The html you want to check. This must be contained in double-quotes (").

For example, this will return true if the element #myPTag contains the string "<span>Hello world.</span>".

@conditional helloWorldThere {
    if-inner-html: #myPTag "<span>Hello world.</span>";