Javascript Code to Scrolling Page Title

Here I am going to share the Javascript code for scrolling the page title of any web page.

You can change the page title by simply set document title property using javascript

Scrolling Page Title Code

You can change the scroll speed by changing the value of variable “speed”. Above it is 150, which means that each character will change it’s position in every 150 milliseconds.

You can change the “msg” variable value to give a custom message text. Above it is assigned to a document title, it is a text inside the title tag.

Leave a Reply

Your email address will not be published. Required fields are marked *