How to get the title of HTML page with JavaScript? October 6, 2022 by Tarik Use document.title: console.log(document.title) <title>Title test</title> MDN Web Docs