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

Link to open new tab nor working. reloading inside iframe

I have this script but doesnt seem to work.  The purpose is to be able to click on the link and open in a NEW tab or load in the same page but NOT inside the iframe.

I am not looking for an "Outputlink" solution. Can anyone help?
<apex:page standardController="Proposal__c" showHeader="false" sidebar="false" extensions="ProposalExtensionController">
  document.getElementById('{!Proposal__c.Broker_Relationship__c}').target = "_blank";

<apex:tabPanel switchType="server" selectedTab="Proposal__c" id="AccountTabPanel"
    tabClass="activeTab" inactiveTabClass="inactiveTab" styleClass="openInPopup">
    <apex:tab label="Proposal Information" name="name1" id="Proposal">
 <apex:inlineEditSupport event="ondblClick"/>
    <apex:pageBlockSectionItem >
    <apex:outputLabel value="Broker Relationship" for="Proposal__c.Broker_Relationship__c" style="font-weight:bold" />
    <apex:outputField value="{!Proposal__c.Broker_Relationship__c}" id="Broker_Relationship__c"/>

currently, its loading inside the iframe.  thanks
Richard Jimenez 9Richard Jimenez 9

Have you tried moving the js script below your tab panel? Check the console in the browser for any errors.