{{ 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.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
- {{domxref("HTMLProgressElement.max")}}
- Is a
double
value reflecting the content attribute of the same name, limited to numbers greater than zero. Its default value is1.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")}}
- Is a
double
value that reflects the current value; if the progress bar is an indeterminate progress bar, it returns0
. - {{domxref("HTMLProgressElement.labels")}}{{readonlyInline}}
- Returns {{domxref("NodeList")}} containing the list of {{HTMLElement("label")}} elements that are labels for this element.
Methods
No specific method; inherits properties from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "forms.html#the-progress-element", "HTMLProgressElement")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}. |
{{SpecName('HTML5.1', "forms.html#the-progress-element", "HTMLProgressElement")}} | {{Spec2('HTML5.1')}} | |
{{SpecName('HTML5 W3C', "forms.html#the-progress-element", "HTMLProgressElement")}} | {{Spec2('HTML5 W3C')}} | Initial definition. |
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} | {{CompatVersionUnknown()}} |
See also
- The HTML element implementing this interface: {{HTMLElement("progress")}}