Showing different titles depending if the tab is active or not

added by DotNetKicks
2/15/2022 4:45:02 PM

154 Views

I just encountered a sneaky thing I had not seen, although it probably worked in 1999 already. A web site was showing a different title on the tab, depending on it being active or not. The whole trick is to use the blur and focus event handlers on the window to change the title.


0 comments