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';
BY Best Interview Question ON 25 Aug 2022
To change the title of a web page using JavaScript, we have to use the following syntax:
document.title = 'Your desired title';