0

In my visual force page I am loading an iframe which show another visual force page inside it.

<apex:iframe id="leadIframe" src="/apex/Convert_Lead_Page?leadId={!leadId}" width="700px" height="350px" scrolling="false"/>

In the page loaded inside iframe, I have button. On clicking it should close the iframe and reload the page from which the iframe is opened.

I tried window.close(), window.opener.close()

Nothing worked. ANy ideas?

0

I figured it out

parent.location.reload() works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.