[Go to site: main page, start]

Function isElementInstanceOf

  • Test whether the given element is an instance of a given HTMLElement class in a cross-window way.

    Parameters

    • element: HTMLElement

      The element to test.

    • tagOrClass: any

      The tag name or HTMLElement subclass to test.

    Returns boolean