كائن HTML DOM Ol
أول كائن
يمثل الكائن Ol عنصر HTML <ol>.
الوصول إلى كائن Ol
يمكنك الوصول إلى عنصر <ol> باستخدام getElementById ():
مثال
var x = document.getElementById("myOl");
قم بإنشاء كائن Ol
يمكنك إنشاء عنصر <ol> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("OL");
خصائص كائن Ol
Property | Description |
---|---|
compact | Not supported in HTML5. Use style.lineHeight instead. Sets or returns whether the list should render smaller than normal, or not |
reversed | Sets or returns whether the list order should be descending or not |
start | Sets or returns the value of the start attribute of an ordered list |
type | Sets or returns the value of the type attribute of an ordered list |
الخصائص القياسية والأحداث
يدعم كائن Ol أيضًا الخصائص والأحداث القياسية .
الصفحات ذات الصلة
مرجع HTML: علامة HTML <ol>