Meter value attribute

Definition and Usage

value attribute sets or returns the value in the meter value attribute value.

The value attribute specifies the current or "measured" value of the meter and must be between min and max between attribute values.

The value attribute is The <meter> tag required attribute.

See also:

HTML Reference Manual:HTML <meter> value پرزنسیپ

HTML Reference Manual:HTML <meter> تگ

Instance

Example 1

Change the value attribute in the meter:

document.getElementById("myMeter").value = "50";

Try it yourself

Example 2

Return the value of the value attribute in the meter:

var x = document.getElementById("myMeter").value;

Try it yourself

Syntax

Return value attribute:

meterObject.value

Set value attribute:

meterObject.value = number

attribute value

value description
number 规定作为仪表当前值的浮点数。

技术细节

返回值: 数值,表示仪表当前值的浮点数。

براوزر کی پشتیبانی

جداول میں نمبر، پہلی بار اس پرزنسیپ کو پورا طور پر پشتیبانی کرنے والی براوزر کی نسلی اعداد دی گئی ہیں。

کروم ایج فائر فاکس سافری آپریا
کروم ایج فائر فاکس سافری آپریا
پشتیبانی نہیں پشتیبانی کیا جاتا پشتیبانی 6.0 پشتیبانی