كائن تقدم HTML DOM
كائن التقدم
يمثل كائن التقدم عنصر HTML <تقدم>.
يمثل عنصر <التقدم> تقدم المهمة.
الوصول إلى كائن التقدم
يمكنك الوصول إلى عنصر <progress> باستخدام getElementById ():
مثال
var x = document.getElementById("myProgress");
قم بإنشاء كائن تقدم
يمكنك إنشاء عنصر <progress> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("PROGRESS");
خصائص كائن التقدم
Property | Description |
---|---|
labels | Returns a list of the progress bar's labels (if any) |
max | Sets or returns the value of the max attribute of a progress bar |
position | Returns the current position of the progress bar |
value | Sets or returns the value of the value attribute of a progress bar |
الخصائص القياسية والأحداث
يدعم كائن التقدم أيضًا الخصائص والأحداث القياسية .
الصفحات ذات الصلة
مرجع HTML: علامة <تقدم> HTML