Is it possible to get the current table on the site?

Hello,

i want to figure out how to get all table-names which are on a site.

For example there are 3-tables on my site, how can i get the name of the first fonded table (“table1”).

Or in other words, how to get existing tables on a page?

I know how to get everything about the table itself…

console.log(ColumnID)
console.log("-----COLUMN-"+parameter+"-----")
console.log("Column-Data-Path = " + ColDataPath)
console.log("Column-Label = " + ColumnLabel)
console.log("Column-Type = " + ColumnType)
console.log("Column-Width = " + ColumnWidth)
console.log("Column-Link-Path = " + ColLinkPath)

…,but how to get the table-name/table-path itself?

What i want to do, is to collect the “table-names” (“table1” / “table2” / “table3”) in an array.

Ok i think i have found a solution for my problem, but still not perfect…

function zzz (parameter) {
 var myElement = "#table"

 for (var i = 1; i < 10; i++) {
        $w(myElement+i).onViewportEnter( (event) => {
 let targetId = event.target.id; 
        console.log((i))
        console.log(targetId)
        })
    }
}

Now i am able to find all tables on the site which are existing, just one more question.
How to prevent this “Error-Message” ?