Reputation: 111
what is the max. no of columns and rows in a html table? Are there any browser issues while viewing the table?
Upvotes: 2
Views: 6308
Reputation: 3434
If it's worth asking then it's worth testing it out, pick a big number and see if you crash your browser:
var t = document.getElementById('t')
var n = document.getElementById('n')
function cols(){
t.innerHTML = '<tr>'+'<td>x</td>'.repeat(n.value)+'</tr>'
}
function rows(){
t.innerHTML = '<tr><td>x</td></tr>'.repeat(n.value)
}
<input id="n" placeholder="How many? / Wie viele?"/>
<button type="button" onclick="rows()">Make rows</button>
<button type="button" onclick="cols()">Make cols</button>
<table id="t">
</table>
Don't pick a big number unless you don't have any important stuff open.
Add your high score as a comment :)
Upvotes: 0
Reputation: 3059
Trawling the DOM with Javascript would adversely effect page performance, case depending.
Upvotes: 0
Reputation: 8117
No. There is no as such limit to rows & columns. But
Upvotes: 2