Is there a way to dynamically change an App Page's Title?

Is there a way to dynamically change an App Page's Title?

avatar
(anonymous user)

See subject. It would be nice to have on a app page that is monitoring unregistered machines. Example ( 5 ) Unregistered machines [ warning ] or [ 10 ] Unregistered machines [ critical! ]

Could also take advantage of playing a sound in the tab if you have the page auto refresh periodically and the count of machines is above a certain threshold.

Product: PowerShell Universal
Version: 4.x.x


All Comments (1)

avatar

The following code changes the page title:

New-UDHelmet -Content {
        New-UDHtmlTag -Tag 'title' -Content {
            "Page Title"
        }
}


If you have a block of code which runs periodically, that may work for you.