+ Start a Discussion
cinov8cinov8 

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...

Sam.arjSam.arj

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>

 

 

 

 

 

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

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).

vasvas
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.
Reppin__505Reppin__505

Hi Vas,

 

Did you ever figure out a solution for this?

 

Thanks.