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