How to dynamically change a web page's title?

In the title sections of the page, there are texts that you can capture the search results related to that page. These are displayed while your page is open. When the user switches to a new tab, you can use a script code like the example below to send some fun and callback messages to the page, such as forget us, don't forget me, we are here, return to the page.

window.onload = function() {
var pageTitle = document.title;
var attentionMessage = 'Come Back ❤';
document.addEventListener('visibilitychange', function(e) {
var isPageActive = !document.hidden;
document.title = attentionMessage;
}else {
document.title = pageTitle;

Seo açısından herhangi bir olumlu yada olumsuz katkısı yoktur.


0 Yorum

Soru & Yorum

Web Tasarım

Renkli Kare

Web Tasarım Ajansı