How to change page title with velo

Hi there,
On my wix site I allow members to message each other. If someone is in a different browser window, i wanted to change the title of the page at the bottom to show that there is a new message, but I am a little stuck. Ideally if I could get it to flash, but I will take just change.

This is what I am currently doing…

so in the pages “Seo(google)” tab I have added the field from my database that will have as a value *new for new messages. it works when i refersh the entire page.
But is there a way to dynamically set the pages title without refreshing the page with velo?
I tried $w(‘Document’).children[0]. title but that only gets the value.

any tips would be appreciated