$(function() { // Get page title var pageTitle = $("title").text(); // Change page title on blur $(window).blur(function() { $("title").text("September Issue - JRA Cycles"); }); // Change page title back on focus $(window).focus(function() { $("title").text(pageTitle); }); });