How to get the title of HTML page with JavaScript?
dom, html, javascript, title
Solution
Use `document.title`:
console.log(document.title)
<title>Title test</title>
MDN Web Docs
Problem
How can I get the title of an HTML page with JavaScript?
dom, html, javascript, title
Use `document.title`:
console.log(document.title)
<title>Title test</title>
MDN Web Docs
How can I get the title of an HTML page with JavaScript?