Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
xg15
4mo ago
0 comments
Share
It's about the insertRow() and insertCell() methods and rows[] and cells[] fields on the table element, not the table itself.
0 comments
default
newest
oldest
eterm
4mo ago
I figured that was the normal way to interact with tables, what would people do otherwise?
xg15
OP
4mo ago
Using the standard DOM APIs or - if they don't care about anything - innerHTML, I suppose.
kleiba
4mo ago
Sorry I - also - am one of those old timers who don't understand this because the shown code is all I've ever used for creating table. So, what is this "standard DOM API" if I may ask? Could you post a code example?
1 more reply
thorum
4mo ago
createElement(‘tr’) and table.appendChild(row)
j
/
k
navigate · click thread line to collapse