كائن عداد HTML DOM
كائن العداد
يمثل كائن العداد عنصر HTML <meter>.
ملاحظة: عنصر <meter> غير مدعوم في Internet Explorer / Edge أو Safari 5 (والإصدارات السابقة).
الوصول إلى كائن متر
يمكنك الوصول إلى عنصر <meter> باستخدام getElementById ():
مثال
var x = document.getElementById("myMeter");
إنشاء كائن متر
يمكنك إنشاء عنصر <meter> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("METER");
خصائص كائن العداد
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 |
الخصائص القياسية والأحداث
يدعم كائن العداد أيضًا الخصائص والأحداث القياسية .
الصفحات ذات الصلة
مرجع HTML: علامة <meter> HTML