Loading…

How we can add title of the page by JavaScript?

To change the title of a web page using JavaScript, we have to use the following syntax:

document.title = 'Your desired title';

Suggest An Answer

No suggestions avaliable!

Latest post from JavaScript interview questions

Ask Question