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
Ashraf SeleimAshraf Seleim 

I would like to embed an external website into a visualforce page. I tried: <apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/> but keep getting a blank page

Hi Everyone,
I tried to use the syntax below to load an external page within visualforce but keep getting a blank page. Anyone can help me on how to display an external website within visualforce, I would be helpful. I am new to salesforce, so any help would be appreciated

<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/> 
Ashraf SeleimAshraf Seleim
Great thanks for your help. That worked like a charm
Nate MullenNate Mullen
Sorry to open up an old thread, but i'm attempting to use the same instructions you have provided and I am getting a blank page.   Has iFrame capability been disabled on Salesforce sites?   Is there a setting in security I need to look at?   I have tried all different types of URL's  http, https, google.com, salesforce.com, all of them display a blank page (but I still have the header and sidebar, which I want), when I hit "preview".  

Any help would be much appreciated. 
Mayank.msMayank.ms
Yes, I am also facing same issue. 
Jasper WallJasper Wall
Appears that it is the Clickjack issue that has stopped the iFrame working. There is an admin setting that can potentially resolve the org issue.
For info - it is located in Admin Settings>Session Settings

User-added image

find more details in 
https://developer.salesforce.com/forums/?id=906F0000000BMKaIAO

Let us know if it helps,

Thanks,
Balayesu