Open Link in Content Editor in New Window

I have recently built a page with a CEWP that points to a website. I want users to click the m the source site),  and have them open in a new window (currently, it's viewable only in the CEWB). Is there any easy way of doing this?
For clarity, imagine you have a CEWP pointing to Amazon.com, and whenever a user clicked a link to a product, it opened in a new window (not just inside the CEWP). How would you make that happen?
Thanks!

Kind of this one...!
<script language="JavaScript">
_spBodyOnLoadFunctionNames.push("rewriteLinks");
function rewriteLinks() {
var links = document.getElementsByTagName('a');
var len = links.length;
for(var i=0; i<len; i++)
   links[i].target
= "_blank";
</script>

Similar Messages

  • Opening links set for "in a new window"

    When I click on a link that is set to open in a new window, Safari will not open it. I can command-click, and the link will open in a new tab.
    I'm using Safari 3.0.3. I've tried turning off blocking of pop-up windows.
    Any ideas?

    Hi Estel-mm and welcome to our community
    Your requirement cannot be met with simple use of RoboHelp
    HTML. It will likely require hand crafting some special JavaScript
    function to make it work. And here's the rub. Assuming you get it
    to work, it may have an adverse effect in that if you configure the
    default topic to open this way and your end user just happens to
    land on that Default topic again, poof! Another new window.
    Just a thought... Rick

  • Since installing 3.6.9 my Joomla content editor pop-up windows no longer return the URLs selected

    I recently upgraded to Firefox 3.6.9 and found that when using the editor in a Joomla 1.0.15 website , the content editor pop-up windows no longer return URLs selected (eg: image or file URL to be used in a link). I have been using the site with no problems for many years, and the problem was cured when I reinstalled 3.6.8

    Thanks cor-el but the problem is not in my web development but is a new issue/problem in FireFox which was not present in all versions up to and including version 3.6.8 and was only introduced in version 3.6.9. I have also established that the same problem also exists in FireFox version 4 beta 6 and have therefore also raised a second question today.
    My understanding was that I should raise these issues in this forum, but I will also check out the other forum.

  • How can I open a customized report in a new window?

    I am trying to create printable views for my reports that are published as portlets. In specific, I would like a link to open the report up in a new window where the user can print at. I have figured out how to do this with the default report created. However, after a user has customized the report, is there a way to open the customized report in a new window?

    Hi
    I do not think it matters whether your reports portlet is a default one or a customize one. I think whne you place the portlet, you can specify in the property to open up the result in new window. I think it is common feature of Portal.
    Thanks
    Rohit

  • Open a bsp page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi,
    Pls try the below logic :
    <htmlb:button id = "help"
    text = "Help"
    design = "standard"
    onClientClick = "window.open('http://www.sap.com')"
    tooltip = "Help"
    />
    This will work for you.
    Regards
    CSM Reddy

  • HT6074 How do I open a page in a separate (new) window?

    How do I open a page in a separate (new) window?

    For a link to a page, control-click the link and choose to do so.
    For an already-opened page, control-click the tab and choose to open it in a new window.
    (120482)

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • Every time i click on a link another random link pops up in a new window. Does this mean i have a virus on my mac?

    every time i click on a link another random link pops up in a new window. Does this mean i have a virus on my mac?

    No; it means that the computer has adware. Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (122523)

  • Forcing link in one web based PDF to open link to another PDF in new browser window

    We have created a form using LiveCycle Designer ES2.  The form is found on our website and is used by faculty to submit proposal information to our office.  Depending upon the answers to questions in the form if they say yes we had a link to another form that we would like them to complete and submit with the original PDF that they are working on.  The problem that we are having is that when they click on the form it opens the new PDF and all the data that they had entered in the original PDF is gone once the new form opens up.  Is there a way to force the new PDF via the use of some scripting that can go along with the link, or via the use of a button that can force the new form to open in a new browser window?  It is impractical for us to expect 1500 faculty members to change their browser settings to open new PDF's in a new window.  We have removed the links for now and have just put in text that says if they select yes they need to go out and complete the additional form.
    The form we are using can be found here: http://spo.usu.edu/files/uploads/SP-01.pdf
    The first three questions on page two where we reference the other forms is where we would like to be able to add the links to the new forms and have them open in a new browser window.  When the form is downloaded and opened in Adobe Acrobat/Reader the links functioned correctly, it just did not function properly when it opens in a browser.
    Thank you in advance for any assistance you can offer in regards to this issue.

    I used a button, removed the border/fill properties and underlined the caption to look like a URL.
    The click event is...
    // form1.page1.subform1.urlBtn::click - (JavaScript, client)
    app.launchURL("http://spo.usu.edu/files/uploads/SP-01.pdf",true);
    The PDF will open in a new window or tab, depending upon the browser configuration.
    Steve

  • When clicking a link normally - a new tab would open, but in this version a new window opens and there are 2 blue bars - the bar at the top of the browser and on the left hand side is a orange firefox button - Next time i start firefox it crashes!!!

    This window looks weird: there are 2 blue bars(the upper blue bar - normally there is 1, with the current page name and - Mozilla Firefox written in white inside of the bar) plus in the 2nd bar there is an orange firefox button, on the left hand side.
    I have already asked this question and was adviced to start in safe mode - this did not help either.
    Please help me quickliy, it is really annoying.
    Thanks
    Richard

    '''Firefox Crash'''
    Create a New Profile as a test to check if your current profile is causing the problems.
    -> Basic Troubleshooting: Make a New Profile
    * https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    -> If that New Profile works then you can recover your Bookmarks and Passwords from the Old Profile.
    -> Recovering important data from an old profile
    * https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    '''Opening Links in New Tab'''
    -> click '''Firefox''' button and click '''Options''' (or Tools Menu -> Options) -> Tabs panel -> place Checkmark on '''Open New Window in a New Tab instead''' -> click OK
    Check and tell if its working.

  • Can you force a link inside a .pdf to open the "linked to" document in a new window?

    When I have a link inside my .pdf document - linking to another .pdf document or to a Word document - how can I force the linked-to document to open in a new window?
    I have a web site (business internal, so unfortunately I cannot point to it).  My HTML menu has links to .pdf documents - no problem.  However, once I open those .pdfs, they contain links to other .pdfs and to Word documents.  Clicking on these links, which reside inside my .pdfs, opens the "linked-to" docs in the same page.  How can I force them to open in a brand new frame?
    All of my .pdfs were originally created in Word, and in the Word versions, the links DO open into new frames.  I am not sure why, when I convert them to .pdfs, they lose this feature.
    Can anyone help?

    Hi Magenta,
    Would you mind reposting this question over on the Acrobat boards?  You've posted in the AIR forum and you'll have better luck with this over there.
    Thanks,
    Chris

  • Director automatically open all the links of  webpage in the new window

    hi
    i want to design the application in director .when user enter
    the URL of any website then all links of web page open in the new
    window....
    for example ..if user type "
    www.Google.com" then all links(hypertext) of Google webpage
    automatically open in the new /separate window ...
    reply me how can i do this
    regards farhana

    Just off the top of my head you could use getNetText(URL) and
    netTextResult(netID) to get the HTML source of the web page as a
    string, parse the string for <a> tags, extract the href
    attribute to create a list of links, then use gotoNetPage using
    _new as a target to spawn a bunch of browser windows with those
    links. IMHO the result would be like getting spammed with dozens if
    not hundreds of popups but there is no reason why it wouldn’t
    work.

  • Opening Document Library PDF in a New Window (Sharepoint 2013)

    Hello,
    I have numerous PDF's in a document library. When the PDF opens in the browser, the PDF's contain links to various other sites; however, when the user clicks the link on the PDF from the document library, the link opens in the same window as the PDF. I would
    like the link to open the PDF in a new browser window.
    I have searched Google but cannot find anything for SharePoint 2013. We are hosting our SharePoint on the Office 365 package.  I found one solution that is repeated on many forums, but I do not see the "Convert to XSLT data view" anywhere
    in SharePoint designer 2013. The solution states:
    "Edit the document library in SharePoint Designer.
    1. Open the site in SharePoint Designer and then open the document library allitems.aspx.
    2. Right-click the document library web part and select “Convert to XSLT data view”.
    3. Locate the name column, you will see this tag “<A onfocus="OnLink(this)" HREF="{@FileRef}"….. ”, add “target=”_blank”” in tag.
    4. After this, the documents will be opened in a new window."
    I do  see my allitems.aspx and can open that with a text editor. The contents of that file are:
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"><SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server" />
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><SharePoint:ViewIcon Width="145" Height="54" runat="server" /></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=32" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
    <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    did you try this one?
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/71b24f4b-570a-48fa-9ec3-91073eafaebd/open-pdfs-in-new-window?forum=sharepointadminprevious
    or trying to use the content editor web part...
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    try this solution...check the column which having the clickable link.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/99e9559a-da76-4722-982c-882b3e4181c7/hyperlink-column-type-open-in-new-window
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Opening a pdf document in a new window on click of commandLink in ADF

    Hi,
    I am having a command link in my page and on click of that i am calling a webservice and getting the contents as bytes and writing the contents to the response outputstream. And i followed the below given steps. Everything works fine and i am getting the PDF displayed in new window. But i am getting a pop up blocker issue in IE and Firefox. Is there any workaround for that?
    1: open a dialog , and get url of servlet
    <af:commandButton text="Dialog Report" id="cbdialogReport"
    action="#{ReportBean.cbdialogReport_action}"
    useWindow="true" windowHeight="1000"
    windowWidth="1100"/>
    public String cbdialogReport_action() {
    try {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext =
    facesContext.getExternalContext();
    HttpServletRequest request = (HttpServletRequest)externalContext.getRequest();
    String strUrl = request.getRequestURL() + "";
    int iPosition = strUrl.indexOf("/faces/");
    strUrl = strUrl.substring(0,iPosition+6) + "/doreport";
    this.reportURL = strUrl;
    System.out.println("strUrl=" + strUrl);
    //System.out.println("request.getRequestURI()= " + request.getRequestURI());
    return "dialog:ReportDialog";
    } catch (Exception ex) {
    System.out.println(ex);
    return null;
    2:diaolog
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelStretchLayout id="psl1">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:inlineFrame id="if1"
    source="#{ReportBean.reportURL}"/>
    </f:facet>
    <f:facet name="start"/>
    <f:facet name="end"/>
    <f:facet name="top"/>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    3: create a serlet
    package com.pansoft.myerp.servlet;
    import com.pansoft.myerp.view.Function;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import net.sf.jasperreports.engine.JasperRunManager;
    public class doReport extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    /**Process the HTTP doGet request.
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    try
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext =
    facesContext.getExternalContext();
    //String strUrl = request.getRequestURL() + "";
    //System.out.println("URL: " + strUrl);
    response.setContentType("application/pdf");
    response.addHeader("Content-Type", "application/pdf");
    //response.setHeader("Content-Type", "application/pdf");
    //response.addHeader("Content-Disposition", "inline;filename=Report.pdf");
    Function function = new Function();
    Connection conn = function.getCurrentConnection();
    OutputStream outputStream = response.getOutputStream();
    InputStream reportStream = externalContext.getResourceAsStream("/Report/rptChar.jasper");
    JasperRunManager.runReportToPdfStream(reportStream, outputStream, null, conn);
    outputStream.flush();
    outputStream.close();
    //facesContext.responseComplete();
    }catch(Exception ex) {
    System.out.println("doGet():" + ex);
    Thanks!
    Ram

    I think you can't anything do about it if your popup blocker prevents the page to open.
    Some such blockers allow to add white lists of url which are allowed to open popups.
    Timo

  • Is there a way to open context-sensitive help in a new window with RH10?

    I'm linking my context sensitive help using the RoboHelp_CSH.js file to my web application.
    The correct topic opens when I click the help link, but it opens in a pop-up window. This causes problems in Firefox and Chrome (which block pop-ups by default).
    Is there anyway to force the context-sensitive help topics to open in a new window?
    I've tried adding
    <p><A HREF="javascript:RH_ShowHelp(0,'http:/myurl/index.htm', HH_HELP_CONTEXT, 100)" target="_blank">Help</A>
    which opens an empty tab in Firefox with no content in it. And it doesn't work in Chrome either.
    Has anyone else run into this? Any help is greatly appreciated.
    Thanks,
    Colleen

    Hi and welcome to the forums.
    Using the RoboHelp API, that is quite a bother. (Read: major pain)
    Fortunately, there is a simple solution:
    <a href="http://myurl/index.htm#<id=4>>newwnd=false" target="blank">Help<a/>
    This link does exactly the same, only opens the help in a new browser window.
    You may also be interested in my custom WebHelp API: http://www.wvanweelden.eu/blog/2012/08/03/custom-webhelp-apis
    Greet,
    Willam

Maybe you are looking for

  • MacBook can no longer connect to the Internet in anyway

    I have a 2007 MacBook which has always connected to the Internet with no problems until the other day I turned it on and could not connect to the Internet. I have tried Wi-fi and Ethernet and it says it is connected yet when I open my browser (I have

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing. <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE"). <br>We also assign title of region on

  • Sata ll or sata lll for a 2008 macbook pro?

    Just wondering about compatibility. I see both versions available. My macbook pro is a 4,1 model from spring 2008. Thinking of the seagate momentus to replace my six year old hitachi. 7200 rpm. 16mb cache. The price is right, about 65 euros. And I've

  • Sap hr global roll out UK

    Hi, Our Company is implementing SAP HR in US and they want me to assit in roll out of SAP HR into UK. Could some one tell me what are the neccessary steps that  needs to be taken into consideration. Ex: Do i need to prepare a separate template with d

  • OSB 11g Domain Configuration.

    Hello, I am having trouble understanding the results of the OSB 11g domain configuration. In creating the domain i have selected the following options: Oracle Service Bus OWSM Extension Oracle Service Bus Extension - All domain topologies Weblogic Ad