Meter value attribute
Definition and Usage
value
Attribute sets or returns value attribute value.
The value attribute specifies the current or "measured" value of the gauge and must be between min and max between attribute values.
The value attribute is <meter> Tag required attribute.
See also:
HTML Reference Manual:ความหมายของค่า HTML <meter> value
HTML Reference Manual:HTML <meter> แทรก
Example
Example 1
Change the value attribute in the meter:
document.getElementById("myMeter").value = "50";
Example 2
Return the value of the value attribute in the meter:
var x = document.getElementById("myMeter").value;
Syntax
Return value attribute:
meterObject.value
Set value attribute:
meterObject.value = number
attribute value
value | description |
---|---|
number | กำหนดให้เป็นตัวเลขเลขฐานของค่าความหมายของเครื่องมือปรับปรุงค่าที่ปัจจุบันของเครื่องมือ |
รายละเอียดเทคนิค
ค่าที่กลับมา: | ตัวเลข แสดงให้เห็นค่าเลขฐานของค่าความหมายของเครื่องมือปรับปรุงค่าที่ปัจจุบันของเครื่องมือ |
---|
การสนับสนุนเบราเซอร์
ตัวเลขในตารางระบุว่าอะไรเป็นเวอร์ชั่นเบราเซอร์ที่สนับสนุนคุณสมบัตินี้อย่างเต็มที่
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
สนับสนุน | ไม่สนับสนุน | สนับสนุน | 6.0 | สนับสนุน |