This is a neat trick I recently learned how to do. This is for when you click out of your site tab, its current Meta Title can change to anything you want.
This will go before your closing body tag (title will go where ‘Your text here’ is).
Code
<script>
jQuery(document).ready(function($) { var titles = []; titles.push(jQuery('title').text()); titles.push('Your text here'); var count = 0; jQuery(window).focusout(function(e) { jQuery('title').text(titles[1]); }); jQuery(window).focusin(function(e) { jQuery('title').text(titles[0]); }); });</script>
Example:
Live (go to web-flame.com and then open a new tab):
Let me know what you think!