How to dynamically change page title

I am creating a website and i want the page title bar to show new notifications, like if you get a new message. So if someone is on another tab the page title will update.

i used wixSeo.setTitle(dynamicItem.newmsgStatus)

This does change the page title, but only when the page is refreshed. I want it to happen dynamically so that if someone is not on my site but on a different tab or widow, the tab on my site will say *new message for examaple. If it could flash that would be even better.

any help would be appreciated

1 Like

Any news on this?

Unfortunately no.

My work around was to still use wixSeo.setTitle(‘Title to display’) inside a setInterval() function. This allows me to change the title without the user refreshing the page. So the optics are the same. So more like long polling vs push. Would love to switch to push if anyone has any insights

[Adding SEO Title Tags and Meta Descriptions to Your Pages | Help Center | Wix.com](Adding SEO Title Tags and Meta Descriptions to Your Pages | Help Center | Wix.com

Try)

Try and change the page title in the SEO basics tab via dynamic page settings.
Worked for me :slight_smile: