I have this code:
function noti() {
document.title = document.title + " 1"
}
setInterval("noti()", 1000)
The problem is it outputs:
My title 1 1 1 1 1 1 1 ….. to infinite…. 1
Is there any possible way to output this as “My title 1”
the noti() function serves as a purpose when everytime an update occurs in the database, whatever is the length gathered from the database it will be outputed into the users title bar.
So, “My title 1”, where “My title” is the name of the user and “1” the length coming from the database
Typically something like this is tagged. Usually you’ll see something like
(1) My title.In this case it’s a simple matter: