What is that called and how do you do it? My page refreshes every 10 seconds using jquery querying a database.
I get new tables casually and I want to be able to update the field to display how many new tables were gathered. I want this because instead of viewing the page to see if any updates happened I can just look at the title of the page inside a tab instead of switching over every 10 seconds you know?
How can this be done? Thanks.
Also the data I am gathering is text in a small table and data is just failed admincp user credentials.
You can change the title of a HTML document using JavaScript:
I don’t know how you are storing the number of new fields, but you could use a function like this:
… Or you can just use
document.title = newTableswhere you define thenewTablessomewhere else (and change that value every time you refresh the page in jQuery).