TitleNotifier.js

Lightweight (< 3kb), dependency-free javascript library to dynamically show the number of unread notifications in your webpage title.

View project onGitHub

Try it Now!

Play around with the buttons below and check the title of the page changing.

Getting Started

Download the project and include the js file before </body>

<script src="title_notifier.js"></script>

Usage

Adding a notification:

titlenotifier.add();

Subtracting a notification:

titlenotifier.sub();

Setting number of notification:

titlenotifier.set(10);

Resetting notification:

titlenotifier.reset();

Contribute

Feel free to contribute by forking it, making a pull request or logging issues.

More

To see more about FrontEnd Development and Open Source, find me: Blog, Twitter