I want to add a jQuery function for dynamic page title that says “dont forget us!” when user changes the browser tab.
here is an example function;
$(function() {
// Get page title
var pageTitle = $(“title”).text();
// Change page title on blur
$(window).blur(function() {
$(“title”).text(“Don’t forget to read this…”); });
// Change page title back on focus
$(window).focus(function() { $(“title”).text(pageTitle); });
});