How to get the title of an Html page in JavaScript
Learn how to get the title of an HTML page in JavaScript.
Using the document.title property
To get the current title of an HTML webpage, We can use the document.title property in JavaScript.
Here is an example:
<head>
<title>Hello google</title></head>console.log(document.title);Output:
Hello google

