Laman

Javascript Focus and Not Focus Tab

<script>
window.addEventListener('focus', function() {
    document.title = 'focused';
});

window.addEventListener('blur', function() {
    document.title = 'not focused';
});
</script>

No comments:

Post a Comment

Silahkan