Activity Forums Salesforce® Discussions How to embed iframe in Salesforce Visualforce page?

  • Satyakam

    Member
    January 18, 2018 at 9:37 am

    How to embed iframe in Visualforce page. I want to display the external website on one of the Salesforce object detail pages via visualforce page. But iframe is not working after release 15, so how can use it. Any help, please.

  • Charan Tej

    Member
    January 18, 2018 at 10:39 am

    I am able to diplay external website through Visualforce page.

    I think issue is only with few websites where X-frame options are set to Deny.

    sample

  • Satyakam

    Member
    January 18, 2018 at 11:23 am

    Hi Charan,

    Is there any other option to show all websites within our visualforce page.

    Thanks

  • Avnish Yadav

    Member
    September 30, 2018 at 12:15 am

    Please use https instead of HTTP in your code.

    Find the sample code below.

    <apex:page showHeader=”false”>
        <apex:pageBlock >
            <apex:iframe src=”https://www.salesforce.com” scrolling=”true” id=”theIframe”/>
        </apex:pageBlock>
    </apex:page>

    Hope this helps.

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos