change the window title

This is a pretty easy one liner

But we can make it a bit more complex with jquery and add a counter

It is questionable that crawlers and bots will see this so may be bad for SEO.

document.title = "A Crazy new page title. 😋";


function change_title(title) {
  document.title = title;

Demo 2

Change the window title and add a counter to it

Window Title: 1 :

window title change example

function change_title_counter(title) {
	counter = $("#counter").html();
	document.title = counter + " : " + title;


Other Items in js
Page Views

This page has been viewed 48 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.