First of all I want to clarify that I do not take for granted that this can be done. My query is if it is possible to page the results of a cycle for
in Javascript , let's take the following sample code:
var i = null;
for (i = 0; i <= 100; i++) {
document.write(i + "<br/>");
if (i % 10 == 0) {
document.write("Paginación<br/>");
}
}
If the code is executed it can be seen that every 10 iterations shows a message (an example), so I wanted to know if it was possible that in this same idea the results could be paged, that is to say, that at the beginning it shows me only the first 10 numbers, and with a button, I can show the next 10 items and so on.