document.onload = function () { const response = fetch("/index.php?listfiles=1"); const tabulka = document.getElementById("tabulka"); tabulka.innerHTML = response.text; }