Change the browser tab Title when the tab is not active as a reminder or to get the attention back from the user.
Change the browser tab Title when the tab is not active as a reminder or to get the attention back from the user.
The variables that can be set are:
- Time before the title changes
- The title when page is inactive
You can download the plugin from Github.
- Upload
browser-tab-title-reminderdirectory to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Yes, using emoji is a great way to get the users attention.
From what we tested it is.
Use the following code:
(function() {
'use strict';
var pageTitle = document.title;
var titleTimeout;
window.addEventListener( 'blur', function() {
window.clearTimeout( titleTimeout );
titleTimeout = window.setTimeout( function() {
document.title = "Don't forget us :)";
}, 3000 );
} );
window.addEventListener( 'focus', function() {
window.clearTimeout( titleTimeout );
document.title = pageTitle;
} );
}());