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
guest1231231guest1231231 

iframe Page Opening Up Into Larger Window

I have this visualforce tab which is suppose to display an external website within a tabpanel.  However when the user clicks on the website in the iframe it opens up into a new window within the existing page, thus existing Salesforce.  Why is it doing this and how can this be resolved with visualforce code?

 

-Thanks

 

Here is my current VF code

<apex:tab label="BDC" name="BDC" id="bdc" rendered="{!NOT(ISBLANK(Account.Top_Category_1__c))}">
  <iframe width="100%" height="500" scrolling="true" marginheight="100%" marginwidth="100%"
  src="http://www.externalwebsite.com/search/rslt_default.asp?  query={!Account.Custom_Account_Field__c}">    
  </iframe>
</apex:tab>

 

 

 

 

SSRS2SSRS2

Website in the iframe’s link target is not set to '_blank' therefore it is always open same window.

 

-Suresh