Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing custom text on the taskbar browser tab

For example suppose you have 3 notifications in Facebook.

When you open the website, you see a browser tab (?) on the taskbar showing '(3) Your name' in Chrome or '(3)Facebook- Mozilla...' in Firefox.

For a webpage, the title value (plus browser dependent text) is shown as text in the browser tab and on the taskbar.

How can I add the number of notifications (i.e. 3 here) there? Is it done with HTML, JavaScript or what?

like image 487
Istiaque Ahmed Avatar asked Nov 23 '25 23:11

Istiaque Ahmed


1 Answers

The contents of the title could either be set by the default HTML originating from the server-side in the <title></title> element, or it could be set using the document.title property in Javascript.

like image 141
daniel Avatar answered Nov 25 '25 14:11

daniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!