Create a gist now

Instantly share code, notes, and snippets.

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
Owner

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