Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 405793 of HTMLProgressElement

  • Revision slug: Web/API/HTMLProgressElement
  • Revision title: HTMLProgressElement
  • Revision id: 405793
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{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")}}

Revision Source

<p>{{DomRef}}</p>
<p>The <strong><code>HTMLProgressElement</code></strong> 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.</p>
<h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Type</th>
      <th scope="col">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>max</code></td>
      <td><code>double</code></td>
      <td>This property reflect the content attribute of the same name, limited to numbers greater than zero. Its default value is <code>1.0</code>.</td>
    </tr>
    <tr>
      <td><code>position</code>&nbsp;{{readonlyInline}}</td>
      <td><code>double</code></td>
      <td>If the progress bar is an indeterminate progress bar, then the <dfn id="dom-progress-position" title="dom-progress-position"><code>position</code></dfn> property return <code>−1</code>. Otherwise, it returns the result of dividing the current value by the maximum value.</td>
    </tr>
    <tr>
      <td><code>value</code></td>
      <td><code>double</code></td>
      <td>If the progress bar is an indeterminate progress bar, then this property return <code>0</code>. Otherwise, it returns the current value.</td>
    </tr>
    <tr>
      <td><code>labels</code>&nbsp;{{readonlyInline}}</td>
      <td>{{domxref("NodeList")}}</td>
      <td>A list of {{HTMLElement("label")}} elements that are labels for this element.</td>
    </tr>
  </tbody>
</table>
<h2 id="Methods">Methods</h2>
<p><em>No specific method; inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{SpecName('HTML WHATWG', "the-button-element.html#the-progress-element", "HTMLProgressElement")}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>No change from {{SpecName("HTML5 W3C")}}.</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', "forms.html#the-progress-elementt", "HTMLProgressElement")}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
        <td>{{CompatVersionUnknown()}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>The HTML element implementing this interface: {{HTMLElement("progress")}}</li>
</ul>
Revert to this revision