Back to Content

HTMLProgressElement

files/en-us/web/api/htmlprogresselement/index.md

latest1.4 KB
Original Source

{{ APIRef("HTML DOM") }}

The HTMLProgressElement interface provides special properties and methods (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of {{HTMLElement("progress")}} elements.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

  • {{domxref("HTMLProgressElement.max")}}
    • : A double value reflecting the content attribute of the same name, limited to numbers greater than zero. Its default value is 1.0.
  • {{domxref("HTMLProgressElement.position")}} {{ReadOnlyInline}}
    • : Returns a double value returning the result of dividing the current value (value) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
  • {{domxref("HTMLProgressElement.value")}}
    • : A double value that reflects the current value; if the progress bar is an indeterminate progress bar, it returns 0.
  • {{domxref("HTMLProgressElement.labels")}} {{ReadOnlyInline}}
    • : Returns {{domxref("NodeList")}} containing the list of {{HTMLElement("label")}} elements that are labels for this element.

Instance methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The HTML element implementing this interface: {{HTMLElement("progress")}}