blinkTitle.js

Is a Pure Javascript Implementation of TitleBar Alert or Notification.It Can Perform Blinking of Html Titlebar When Required.

Getting It Into Your Html

<script type="text/javascript" src="https://raw.githubusercontent.com/flouthoc/blinkTitle.js/master/index.js"></script>

Regular Alert

blinkTitle("Head's Up","Notification",500);

This Basic Example of blinkTitle . The function will change toggle the title between "Head's Up" and "Notification" . Transition Time between these two messages will be 1000 millisecons

Try It Stop

Alert when tab out of focus

blinkTitle("Head's Up","Notification",500,true);

This Basic Example of blinkTitle . The function will change toggle the title between "Head's Up" and "Notification" . Transition Time between these two messages will be 1000 millisecons.The Alert/Notification will be shown when Users attention in out of focus from the page.By the implementation of onfocus and onblur

Try It Stop

Stop It!

blinkTitleStop();

You Can Stop The blinkTitle() anytime By Using blinkTitleStop()

To-Do's (Not Yet Implemented)

1.) Timeout Implementation

2.) Simplifying Arguments To JSON format

3.) Minifying the source