cnhsn / change-title

:pencil: Başka sayfaya geçildiğinde sayfa title'ında sayaç başlatır.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Başlık Değiştirme (Change Title)

Tarayıcı üzerinde sayfa aktif ise varsayılan başlık görünür. Farklı sekmeye geçtiğinizde ise başlık değişir ve sayaç artmaya başlar.

If the page is active on the browser, the default title appears. When you move to the different tab, the title changes and the counter starts to increase.

Kullanımı (Use of)

Kodları sayfaya eklemeniz yeterlidir.

It is enough to add the codes to the page.

Özelleştirme (Customize)

Farklı sekmeye geçildiği zaman sayaç yerine belirlediğiniz bir metnin görünmesini istiyorsanız aşağıdaki kodlar yeterlidir.

The following codes are sufficient if you want to see a text that you specify instead of the counter when switching to a different tab.

var title = document.title;
var alttitle = "Sayfa değişti!"; // "Page changed !"

window.onblur = function()
{
    document.title = alttitle;
};

window.onfocus = function()
{
    document.title = title;
};

About

:pencil: Başka sayfaya geçildiğinde sayfa title'ında sayaç başlatır.


Languages

Language:JavaScript 100.0%