Browser Title Bar Notification Plugin with jQuery - Tabalert

Browser Title Bar Notification Plugin with jQuery - Tabalert
File Size: 4.83 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Tabalert is a tiny jQuery plugin used to flash browser title bar with custom text for notification purpose. You can set the plugin to flash the title bar when the user is not viewing your website.

See also:

Basic usage:

1. Include the jQuery tabalert plugin after loading jQuery JavaScript library.

<script src="//code.jquery.com/jquery-1.12.0.js"></script>
<script src="jquery.tabalert.js"></script>

2. Flash the title bar with custom text until your website gets focused again.

$.titleAlert('I Miss You');

3. Default plugin settings.

$.titleAlert('I Miss You',{

  // The flashing interval in milliseconds
  interval: 500,

  // Time in milliseconds that the original title is diplayed for. 
  // If null the time is the same as interval.
  originalTitleInterval: null,

  // The total lenght of the flashing before it is automatically stopped. 
  // Zero means infinite.
  duration:0,

  // If true, the flashing will stop when the window gets focus.
  stopOnFocus: true,

  // If true, the call will be ignored unless the window is out of focus.
  requireBlur: false,

  // If true, the flashing will stop when the document recieves a mousemove event 
  // (i.e. when the user moves the mouse over the document area, regardless of what window is active).
  stopOnMouseMove: false
  
});

This awesome jQuery plugin is developed by archetype2142. For more Advanced Usages, please check the demo page or visit the official website.