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
Shirley MaglioShirley Maglio 

How to display a new page and replace the entire Account detail page within the browser window?

Hi All,

I have inserted a Vf page as a section into the Account detail page.  I have a link on that Vf page, but when I clicked the link, the new page is only showing within the section containing the Vf page.

What do I have to do so the new page replaces the entire Account detail page within the browser window?

This is the link:
 
<apex:panelBar width="100%">
<apex:panelBarItem label="Links">
<a href="/00U/e?what_id={!Account.id}&retURL=%2F{!Account.id}" class="menuSelection mySelectedItem"><img src="/pic.gif" alt="Invitations"  class="menuIcons" title="Invitations"/></a>
</apex:panelBarItem>
</apex:panelBar>

Any help is greatly appreciated!

Shirley
bouscalbouscal
One option is to set the target attribute; 
target="_top"

You might want to replace the HTML <a> tag with the <apex:outputLink/> tag too.  May have better luck.
 
ManjunathManjunath
Hi,

This is happing because the Detail page and Vf page are palced in 2 different domain. As you have embedded the VF in side the details page.
If they were in the same domain this could have been posible.

Regards,
MCS