The attribute definition calls a globally accessible JavaScript function.
Example
HTML
JS
123<head>4<script>5function_loggedOutCallback(){6//possibly redirect the user to the login page7}89</script>10<scriptsrc="https://labs.pathfix.com/helper.js"11data-on-logged-out="_loggedOutCallback()"12></script>13</head>