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

  • Satyakam

    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

    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.


  • Satyakam

    January 18, 2018 at 11:23 am

    Hi Charan,

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


  • Avnish Yadav

    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=”” scrolling=”true” id=”theIframe”/>

    Hope this helps.

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos