+ Start a Discussion

VF page in an iframe

I have a visualforce page sitting on the home page within an iframe.  I want the user to be able to click a link on that visualforce page and display the details page for the specific object (e.g. a Task).


When the user clicks the link the page refreshes but only within that iframe. How do I get the parent window (i.e. my main salesforce window) to refresh as if the page was being accessed normally?


Thanks in advance...


set your link this way:



<a href="myUrl" target="_top">Value</a>

If you are using apex component:


<apex:outputLink value="https://www.salesforce.com" target="_top" id="theLink" >www.salesforce.com</apex:outputLink>






What about using JavaScript on the link to open it in the parent window? Like using ..."window.parent.location.href = link goes here".

And do you know how I can do exactly the opposite :)

I have a VF page with external links that want to show inside salesforce frame (header and sidebar).

What if its a button instead of a link? I have a vf page embedded in a standard page and I want to display the new page in the main window instead of the embedded frame when the button on the vf page is clicked.

Hi Vas,


Did you ever figure out a solution for this?