Module

Web.DOM.HTMLCollection

Package
purescript-web-dom
Repository
purescript-web/purescript-web-dom

#length Source

length :: HTMLCollection -> Effect Int

The number of elements in a HTMLCollection.

#item Source

item :: Int -> HTMLCollection -> Effect (Maybe Element)

The element in a HTMLCollection at the specified index, or Nothing if no such element exists.

#namedItem Source

namedItem :: String -> HTMLCollection -> Effect (Maybe Element)

The first element with the specified name or ID in a HTMLCollection, or Nothing if no such element exists.

#toArray Source

toArray :: HTMLCollection -> Effect (Array Element)

The elements of an HTMLCollection represented in an array.

Re-exports from Web.DOM.Internal.Types

#HTMLCollection Source