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 Available!