function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sidharth Panda 5Sidharth Panda 5 

open external url in separate tab in salesforce console

I am using the srcUp() function on a custom button to open an external page. However, when the subtub opens, nothing loads( see Image below). The domain is whitelisted in the app. Any suggestions is greatly appreciated. 

User-added image

Code Snippet:

<script type="text/javascript">
        var Bonurl;
        function openTab(BOnURL) {
             Bonurl = BOnURL;
    if(!sforce.console.isInConsole()){
        window.open(Bonurl,'_blank','height=400,width=400');}
     else { 
       srcUp(Bonurl);
    }
}
</script>

BOnURL = http://62.21.128.199:8280
Amit Chaudhary 8Amit Chaudhary 8
"http://62.21.128.199:8280" is external system or web page that is why salesforce is not allow it to open with in console
Sidharth Panda 5Sidharth Panda 5
But the external domain (62.21.128.199:8280) is whitelisted in the Salesforce console app.