window-events-tab_changed

1.0.0 • Public • Published

tabChanged

An extension to the window object to detect focus and blur

Events

TabFocus

This event is triggered when a tab has been given focus from a blur.

window.addEventListener("TabFocus", function(){
    console.info("event test tab focus");
});

TabBlur

This event is triggered when a tab has been given blur from a focus.

window.addEventListener("TabBlur", function(){
    console.info("event test tab blur");
});

Readme

Keywords

Package Sidebar

Install

npm i window-events-tab_changed

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.21 kB

Total Files

4

Last publish

Collaborators

  • webciter