-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
1Questions
-
7Replies
<apex:page >
<apex:includeScript value="/support/console/25.0/integration.js"/>
<script type="text/javascript">
(function () {
setTimeout(function () {
sforce.console.getEnclosingPrimaryTabId(function (result) {
var subdomain = '{!URLFOR(JSENCODE($Action.Account.Tab), JSENCODE($ObjectType.Account), null, true)}';
subdomain = subdomain.substring(0, subdomain.indexOf(".salesforce.com"));
var homePageUrl = subdomain + ".salesforce.com/home/home.jsp?tabId=" + encodeURIComponent(result.id);
setTimeout(function () {
var iframe = "<iframe src='" + homePageUrl + "'></iframe>";
document.write(iframe);
}, 50);
});
});
})();
</script>
</apex:page>