update README

This commit is contained in:
a-Sansara 2015-12-24 04:35:55 +01:00
parent 0fe340387a
commit 6685c12bc1
2 changed files with 9 additions and 3 deletions

View File

@ -2,6 +2,7 @@
Manage commnunication between browser tabs.
this js lib can perform several actions on browser tabs like :
- (*new) search and kill zombies tabs (enable onload by default)
- append/rewrite/synchro node on all (other) tabs or a specific tab (and possibly on specific frame context) eventually with callback.
- reload all tabs or a specific tab with specified url or tab 's current url
- perform your custom actions on all tabs or specific tab
@ -14,7 +15,8 @@
### Initialize
$(document).ready(function() {
$bt.init();
// $bt.zkillonload = false // disable zombkill cmd at statup
$bt.init(optionalCallback);
}
@ -47,6 +49,9 @@
// reload specific browser tab to specific url
$bt.reload(window.location.path+"?reloaded=1", '1449974562012');
// search and kill zombies tabs
$bt.zombkill(callback, timeout);
// get browser tab list
$bt.list;

View File

@ -15,7 +15,8 @@
*
*
* $(document).ready(function() {
* $bt.init();
* // $bt.zkillonload = false // disable zombkill cmd at statup
* $bt.init(optionalCallback);
* });
*
*
@ -49,7 +50,7 @@
* // reload specific browser tab to specific url
* $bt.reload(window.location.path+"?reloaded=1", '1449974562012');
*
* // check and kill zombi tabs
* // check and kill zombies tabs
* $bt.zombkill();
*
* // get browser tab list