Skip to content

Instantly share code, notes, and snippets.

@jamesnotjim
Created August 30, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesnotjim/c9cfcf262794c462af695a46c7c220e0 to your computer and use it in GitHub Desktop.
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
<script type="text/javascript">
// Replace default page title with document.title, which is based on view name
document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML = document.title;
</script>
@jamesnotjim
Copy link
Author

Usage

Drop this code into a Script Editor web part on the view page in question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment