[SalesForce] Tab Title shown as External Page in Console

I have created Visual force page on my custom object and add a custom button to it and when the user clicks on the custom button (opening VFP)

the page is opened in New tab, but the Tab title is set as External Page.

How can I change and add custom_object__c.Name in the title ?

Best Answer

i able to found the solution finally: source

<apex:includeScript value="/support/console/20.0/integration.js"/>
    <script type="text/javascript">
        function testSetTabTitle() {
            //Set the current tab's title
            sforce.console.setTabTitle('Lead: {!Lead.Name}');
        }
        var pageLoad = window.onload;
          window.onload = function() {
                if (pageLoad) {
                        pageLoad();
                }
                  testSetTabTitle();
          }
    </script>