Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
  <head>
  <title>W3Schools Demo</title>
  </head>
<body>
<h2>Finding HTML Elements Using document.title</h2>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"The title of this document is: " + document.title;
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_doc_title by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:46:50 GMT -->
</html>