Play Games

Search This Blog

Wednesday, February 3, 2016

How to change tab name( browser tab name) of Visualforce Page

Solution: Use document.title to give title.
Visualforce Page :
<apex:page>
<script type="text/javascript">
document.title = 'See Tab Name';
</script>

</apex:page>
Output :

3 comments:

  1. Hello,
    This method only works in Salesforce Classic.
    In Lightning, the document.title does not have any effect on the browser tab name.
    Is there an alternative for Lightning?
    Thanks!

    ReplyDelete
    Replies
    1. Use this in your vf page:

      Delete
    2. apex:page title="My VF Page"

      Delete