Objekt HTML DOM Meter
Měřič objektu
Objekt Meter představuje HTML element <meter>.
Poznámka: Prvek <meter> není podporován v prohlížečích Internet Explorer / Edge nebo Safari 5 (a dřívějších verzích).
Přístup k objektu Meter
K prvku <meter> se dostanete pomocí getElementById():
Příklad
var x = document.getElementById("myMeter");
Vytvořte objekt Meter
Element <meter> můžete vytvořit pomocí metody document.createElement():
Příklad
var x = document.createElement("METER");
Vlastnosti objektu měřiče
Property | Description |
---|---|
high | Sets or returns the value of the high attribute in a gauge |
labels | Returns a list of <label> elements that are labels for the gauge |
low | Sets or returns the value of the low attribute in a gauge |
max | Sets or returns the value of the max attribute in a gauge |
min | Sets or returns the value of the min attribute in a gauge |
optimum | Sets or returns the value of the optimum attribute in a gauge |
value | Sets or returns the value of the value attribute in a gauge |
Standardní vlastnosti a události
Objekt Meter také podporuje standardní vlastnosti a události .
Související stránky
HTML reference: HTML značka <meter>