Created
August 30, 2016 20:28
-
-
Save jamesnotjim/c9cfcf262794c462af695a46c7c220e0 to your computer and use it in GitHub Desktop.
In SharePoint 2013, replace a generic page title with the the document.title, which includes the view name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Replace default page title with document.title, which is based on view name | |
document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML = document.title; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
Drop this code into a Script Editor web part on the view page in question.