{{DomRef}}
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")}}.
Name | Type | Description |
---|---|---|
max |
double |
This property reflect the content attribute of the same name, limited to numbers greater than zero. Its default value is 1.0 . |
position {{readonlyInline}} |
double |
If the progress bar is an indeterminate progress bar, then the position property return −1 . Otherwise, it returns the result of dividing the current value by the maximum value. |
value |
double |
If the progress bar is an indeterminate progress bar, then this property return 0 . Otherwise, it returns the current value. |
labels {{readonlyInline}} |
{{domxref("NodeList")}} | A 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', "the-button-element.html#the-progress-element", "HTMLProgressElement")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}. |
{{SpecName('HTML5 W3C', "forms.html#the-progress-elementt", "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")}}