Module: html/utils

html/utils

Utility functions to ease working with DOM elements.

Methods

getStyleProperty(element, propertyName) → {*}

Get the value of a property on an element.
Source:
AMD-modules.js, line 14
Parameters:
Name Type Description
element
HTMLElement The element.
propertyName
string The name of the property.
Returns:
The value of the property.
Type
Any

isInHead(element) → {boolean}

Determine if an element is in the document head.
Source:
AMD-modules.js, line 23
Parameters:
Name Type Description
element
HTMLElement The element.
Returns:
Set to `true` if the element is in the document head, `false` otherwise.
Type
boolean
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.