TableRow sectionRowIndex 属性
定义和用法
sectionRowIndex
属性返回行在 <tbody>、<thead> 或 <tfoot> 的 rows সংকেত অবস্থান
另请参阅:
HTML 参考手册:HTML <tr> ট্যাগ
实例
例子 1
点击不同的行,输出它们的位置:
alert("Section row index is: " + x.sectionRowIndex);
例子 2
返回 thead、tbody 和 tfoot 的 rows 集合中行的位置:
var x = document.getElementsByTagName("tr"); var txt = ""; var i; for (i = 0; i < x.length; i++) { txt = txt + "The index of Row "+(i+1)+" is: "+x[i].sectionRowIndex+"<br>"; }
সংজ্ঞা
ফলাফল: sectionRowIndex অবজেক্ট:
tablerowObject.sectionRowIndex
কারিগরি বিবরণ
ফলাফল: | সংখ্যা, যা ত্রিমূখী সংখ্যা থেকে ত্রিমূখী সংখ্যা rows সংকেত অবস্থান |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |