function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion 

How to embed iframe in visual force page

I want to display external website on one of the salefoce object detail page via visual force page. But iframe is not working after release 15, so how can use it. Pleae let me know
NagendraNagendra (Salesforce Developers) 
Hi Kamran,

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.

Mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering similar issue.


Hi Nagendra,

I have already tried with this. Actually Apex:iFrame in visualforce page stopped working since Summer 15 release. So I want the alternet of it or any change in SF

NagendraNagendra (Salesforce Developers) 
Hi Kamran,

May I suggest you please check with below link from stack exchange community with suggested workaround for the above problem.

Hope this helps and this is the possible workaround for the above issue.

Mark this as solved if the information helps.

Thanks Nagendra, I have already reviewed it.