How to fetch page title name if document.title is not present <p>I want to fetch page title name but document.title is not present. Instead of document.title the logic is written below:-</p> <pre><code>&lt;title ng-bind="page.title()" class="ng-binding"&gt;&lt;/title&gt; </code></pre> <p>I want to use javascript to get page title. </p>