TableHeader headers attribute
Definition and Usage
headers
Set or return the value of the headers attribute.
<th> headers attribute Specify a list of header cells that contain the title information for the current data cell.
See also:
HTML রেফারেন্স ম্যানুয়েল:HTML <th> ট্যাগ
Instance
Example 1
Return the headers property value of the <th> element with id "myTh":
var x = document.getElementById("myTh").headers;
Example 2
Display the cell titles of the second row:
var table = document.getElementById("myTable"); var txt = ""; var i; for (i = 0; i < table.rows[1].cells.length; i++) { txt = txt + table.rows[1].cells[i].headers + "<br>"; }
Example 3
Change the headers property of the <th> element with id "myTh":
document.getElementById("myTh").headers = "newValue";
Syntax
return headers property:
tableheaderObject.headers
set headers property:
tableheaderObject.headers = header_ids
এট্রিবিউট মান
মান | বর্ণনা |
---|---|
header_ids | একটি বা একাধিক শিরোমুখী কোষাগারের id তালিকা নির্দিষ্ট, স্পেস-দ্বারা বিভক্ত |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দমালা মান, স্পেস-দ্বারা বিভক্ত শিরোমুখী কোষাগার পরিচিতার তালিকা অন্তর্ভুক্ত |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
সংশ্লিষ্ট পাতা
HTML রেফারেন্স ম্যানুয়েল:HTML <th> হেডার্স এট্রিবিউট