DOMRectList

Module: JavaScript DOM API

List of DOMRects.

#include <DOMRectList.idl>

Public Functions

Name
getter DOMRectitem(unsigned long index)
Get a DOMRect in the list.

Public Attributes

Name
readonly attribute unsigned longlength
The number of DOMRects in the list.

Public Functions Documentation

function item

getter DOMRect item(
    unsigned long index
)

Get a DOMRect in the list.

Parameters:

  • index index of the item

Return: the DOMRect at the specified index in the list or null if the index is greater than the length of the list

Public Attributes Documentation

variable length

readonly attribute unsigned long length;

The number of DOMRects in the list.