Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
count tabbing
var tabCount = 0;
function myFocusFunction() {
console.log("tab #:", tabCount);
var x = document.getElementsByTagName('body');
x[0].addEventListener("focus", myFocusFunction, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment