Branch to open a _BLANK

I have a button an a page, when this button is clicked I want it to open a URL. but this URL must be a _blank like in html so it opens a new browser window. How do I do this?
Thanks

One way...
<p>Set your button's URL target to:
<p><span style="font-family:courier">javascript:openNewPage();</span>
<p>And add a javascript function that opens a new window:
<p><span style="font-family:courier"><script language="JavaScript" type="text/javascript"><br>
function openNewPage() {<br>
window.open('http://www.google.com');<br>
}<br>
</script></span>
<p>Put the javascript in your page's html header (via page attributes) or in an included file.

Similar Messages

  • Pdf not opening with _blank in Safari Mac, opens fine in Firefox, IE7

    We have pdf's ('secured' using Acrobat Pro, on a password protected site) that open fine, using _blank, in IE7 Win and also download fine with Firefox - but will only give a blank page in Safari Mac (generally latest versions of the browsers).  We have tried now on two Macs and one PC (each in a different location, not that that matters).
    Would most appreciate your insights.  We need to get this up.  (Have searched the forums extensively, not found discussion of this.)
    Much thanks,
    David Allen

    Safari 4, has a pdf viewer built-in, and this may cause a conflict with your code (or any old pdf viewers you have installed). You could try searching the apple developers web site for more info at -
    http://developer.apple.com/safari/
    PZ

  • Acrobat plugin, "external" links - how to open in _blank?

    I understand that the following questions may have been asked numerous times on this and other forums previously. Knowing that software capabilities constantly change with every new release, I wanted to clarify by gaining answers directly to the following questions.
    If a PDF document is displayed within the acrobat plugin in any web browser, is it possible to invoke a link within that PDF to open in a new browser window or tab rather than loading in the current window and navigating away from the PDF?
    Is there a cross browser solution for achieving this outcome?
    Our workflow for producing PDFs involves Indesign, is there a way we can implement this in the Indesign source by inserting Javascripts?
    If the answer to (1) and (2) is "No", are there any alternative options for achieving this?
    Any constructive insights/suggestions are greatly appreciated.

    I think part of your problem might lie in the way you are trying to use your quotation marks.  It appears you are trying to have the single quotes do what double quotes should be doing.
    document.write("<a href='"+imagelinks[ry]+"' target='_blank'><img src='"+myimages[ry]+"' border='none'></a>
    If you want to have doublequotes appear in code as doublequote characters you can try slashing them to have them read literally... \"
    document.write("<a href=\""+imagelinks[ry]+"\" target=\"_blank\"><img src=\""+myimages[ry]+"\" border=\"none\"></a>

  • Using branching to open in new window.

    Hi,
    Rather than creating a whole bunch of urls manually for the links between pages, I want to use branches.
    My problem is that I need to have some of them open in a new window.
    I have tried altering the target of the flows form to a new window and submitting it, but this doesn't appear to work.
    Can anyone help with where I am going wrong?
    Thanks
    Michael.

    Hi,
    This could be a false alarm.
    I appear to have too many items on the form to allow it to submit.
    I have over 200 items on the form, there appears to be a limit of 100.
    Michael

  • Branch account open items

    Hi,
    We are shifting our Vendors to Head Office/Branch functionality. Our ordering vendor now becomes a Branch. We need to transfer any open items left in the Ordering vendor account, and move them to the new Head Office account.
    Has somebody done this in their own company or client? If yes, please advise your methodology..
    Regards
    Kuldeep singh

    Hi,
    isn't possible move open items from a master data to another. You can use Alternative Permited Payee funcionality. In this case the Branch Vendor payments line item will take place in Head Office Vendor payments.
    Take a look in this link:
    http://www.ariston-inc.com/pdf/Ullman_V1.pdf

  • Open a _blank window with a specific size

    Hi !
    I need to open a new _blank window with a specific size. I
    don't know sh*t about javascript. Could somebody help me by showing
    me a completed solution.
    I searched for a "onLoad" solution to put in the html of the
    targeted page but I didn't find anything. My link is from a flash
    to a really basic html page.
    Thx guys !

    Fel_911 wrote:
    > Hi !
    > I need to open a new _blank window with a specific size.
    I don't know sh*t
    > about javascript. Could somebody help me by showing me a
    completed solution.
    Forum Archives:
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    Search "pop up" or "popup"
    Couple of hundreds of posts, with code samples.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • New Branch Office Opening. Active Directory Options

    Hello.
    Our company has a new branch site in Canada that's been in operation for some time now. the "admin" of that branch office is wanting to setup 2 new domain controllers, i was going to suggest that we could add a Canada site via Active directory
    sites and services and configure it that way.
    he suggested that he would like the to have a separate domain name, for instance if we're contoso.co.uk, they want to be contoso.ca
    is the best option in this situation to have them setup there own domain and then just federate between them?
    i have good experience with AD but as were a small company (geographically) so i have little knowledge of multi site / federation topology.
    any suggestions would be most welcome. 
    Many Thanks

    Hello
    If you decide to deploy new Domain this will lead to new administrative tasks to able to support users(creating trust to support access to resources in other domain, other suit of GPOs etc.). Instead if second site is added this will be more simple solution.
    semi -solution is to have child domain which back again will lead to other admin tasks. Also Recommendation by the vendor to have simple solution.

  • Customize size of window opening in _blank

    I would like to add streaming audio to a site that opens up
    in a small window which matches the size of the player plus a bit
    of text. Any ideas?

    Never mind; I figured it out...

  • In Firefox 5 links with target="_blank" don't open in new window or tab. Is there a way to make them do that?

    I've search some info about this and it seems like there's a lot of people that are annoyed by links opening in new window/tab and that the 'target="_blank"' is not valid in strict XHTML. I'm guessing this could be reasons why Firefox 5 ignores the 'target="_blank"'. But in some cases you really want to open a new widow, in my case I'm using a flash application and want to open links in new windows from there and then the ctrl-click doesn't work. When opening the link in the same page and then go back the application is reloaded and it's state is lost. Probably should try to find out if there's some other way to open links from a flash application, but I'm wondering if there's a way to make Firefox 5 open 'target="_blank"' links in new tabs.

    I don't know how to delete my question, anyway I'm not having this problem anymore. In our organisation the IT department deploy Firefox updates with certain settings and limitations, in the tap-options the checkbox for opening new windows in new tabs where checked but disabled. They made some changes to make this checkbox enabled and now it works as expected if it's check new windows open i new tabs and if it's not in new windows. They never opens in the same tab as they did before.

  • Open BI Publisher Report After Submit

    I have a page with 2 date fields, which are parameters for a report.
    I also have a button called RUN_REPORT.
    What I need to do is that the user puts the parameters in, then clicks RUN_REPORT. The page should submit (putting parameters into session state) and then a BI Publisher report should appear in a pop up page.
    At the moment using the code below, the user inputs parameters and clicks RUN-REPORT (SUBMIT). Unfortunatley the BI report tries to open before the submit is finished. So there are no items in session state for the report to use as parameters.
    Page HTML Header
    <script type="text/javascript">
    function renew()
    doSubmit('SUBMIT')
    popupURL('This contains my string to open the report')
    </script>On my button
    javascript:renew();Help appreciated
    Gus

    I've solved this in two ways:
    First solution:
    - The last parameter the user has to pick is in a selectlist which submits the page
    - The button redirects to url:
    javascript:popUpNamed('URL','');Seccond solution (and user-friendlier solution ;) ):
    1 - Hidden item (say P_RAP), default it's empty
    2 - The buttons Action is 'Submit page'
    3 - A conditional Branche to the own page, which only runs when the report button is pressed.
    3a -- This branche sets the hidden Item (P_RAP) with the report name (in my case, becouse I can start multiple reports on the page and I use it in my URL to the report, it can also be just a 1 or something, just that it is filled)
    4 - A Page Process which runs On Load - After Header, and is conditional: Value of Item P_RAP is NOT NULL.
    4a -- The code of this process is:
    BEGIN
    htp.p('<script type="text/javascript">');
    htp.p('w = open("URL_to_the_report","_blank","Scrollbars=0,location=0,resizable=1,menubar=0,toolbar=0,left=50,top=100,width=500,height=500");');
    htp.p('</script>');
    :P_RAP:=''; /*clear the P_RAP item after starting the report*/
    END;Hope this helps

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

  • Open external url dynamic link in new tab  (no new window) in Chrome

    Hello,
    We need to navigate to a external link in response to user double-click in a row table.
    We've succesfully created the code to invoking a managed bean as response of double-click user event. For that, we added a clientListener object to the table object, and add the javascript code to queue the actionEvent for launching the backing bean code.
    In backingBean code, we execute code to calculate link url based on several conditions, (e.g: depending on a type object, url is http://server1/data.asp?param=..., or http://anotherserver/miApp/exp.cfm?d=2&p=..., ... and so on)
    Now we have the URL string, we invoke code to open the page in the new tab, but, the new page always is opened as a new window, not as new tab in the current browser.
    We have tried with several code:
    1)
    String script = "window.open('" + sURL + "');
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(), ExtendedRenderKitService.class);
    service.addScript(FacesContext.getCurrentInstance(), script);
    2) String script = "OpenNewTab('" + sURL + "');
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(), ExtendedRenderKitService.class);
    service.addScript(FacesContext.getCurrentInstance(), script);
    and adding the js function in our scripts:
    function OpenNewTab(url){
    var oFormNewPest = document.createElement('FORM');
    oFormNewPest.method = 'get';
    oFormNewPest.target='_blank';
    oFormNewPest.action = url;
    document.body.appendChild(oFormNewPest);
    oFormNewPest.submit();
    This function works fine in others app we have, but when it's invoked inside ADF app, we get a new window insted a new tab.
    We need to open a new tab, doesn't matter the method used.
    Any ideas?

    Thanks, but I also forget I tried before with
    var oTab = window.open(url,"_blank"); //and "_parent", and "_top"
    and doesn't work: The browser opens a new window, not a new tab.
    The same javascript code works fine outside an ADF application.
    Any other idea (using javascript or ADF backing bean code)?
    Regards.
    Edited by: romoracle on 29-feb-2012 6:39

  • Opening a new browser window not working.

    Hi,
    I have created a webpart which uses the following line of code to open a new window and close the old one when a certain condition is met:
    Page.ClientScript.RegisterStartupScript(GetType(),
    "hwa",
    "myWin=window.self;window.open('"
    + QA_URL + "','_blank');myWin.close();",
    true);
    This code works in the test environment, but when I try it in the production encvironment, I am receiving a message "A referral was returned from the server/" and the new window is not
    being opened.
    A note, that there are two configuration values being pulled from web.config which exisit in the production environment. One of them is the ldap information to look up a user and the other is the
    url that should be opened in the new window. Does anyone know why this is not happening? Https exists in both the test and the production environment.
    thanks
    Sherazad

    Hi,
    According to your post, an error occurred when you opened a new window using JavaScript.
    We can do as follows:
    1. Check the LDAP configure in the web.config file.
    http://stackoverflow.com/questions/6954170/a-referral-was-returned-from-the-server-exception-when-accessing-ad-from-c-sha
    http://mundeep.wordpress.com/2008/07/17/a-referral-was-returned-from-the-server/
    2.Try to set the SPSite.UserAccountDirectoryPath property.
    PS C:> Set-SPSite -Identity http://brokensite.contoso.com -UserAccountDirectoryPath “”
    3. Check the ULS log by the following link:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Opening a pdf file in a relative link / local

    Maybe this sounds simple.
    But I get used to AS2 code to open  a pdf file like the code below:
    getURL("pdfDocuments/pdfname.pdf","_blank")
    As I search uncle Google I'm stuck to this as equivalent to getURL in AS2.
    btn.addEventListener(MouseEvent.CLICK, btnClick);
    function btnClick(e:MouseEvent):void {
              navigateToURL( new URLRequest("pdfDocuments/pdfname.pdf"), "_blank");
    But still it did'nt work.
    Before in AS2 getURL working on mailto, pdf on a relative link and a typical url's.
    But as to AS3 navigateToURL function only works on mailto and typical url.
    Any tweaks to the code above, to get it to work? will much appreciated.
    Thanks,

    There's numerous examples if you google "call javascript from actionscript".
    Here's 1 that sums it up pretty simply, just import flash.external.ExternalInterface; then use it statically via its call() method to call javascript. Then in the javascript simply do what you want.
    http://www.hardcode.nl/archives_155/article_334-call-javascript-function-from-as3-and-vice versa.htm
    e.g. ACTIONSCRIPT:
    import flash.external.ExternalInterface;  // call javascript function passing to load relative URL "pdfs/some.pdf"ExternalInterface.call("loadPDF","pdfs/some.pdf");
    e.g. HTML
    <html><head><script type="text/javascript">// <!-- // function with the called namefunction loadPDF(pdfName){     // open a new window (or tab) to the PDF requested from AS     window.open(pdfName,"_blank"); } // --></script><body> </body></html>
    Nothing really much to it.
    Here's a reference to window.open() if you want to customize the opened window:
    http://www.w3schools.com/jsref/met_win_open.asp

  • Open a new page

    Hi!
    In my application, I've an html file and i want saving or opening .
    With IE, when i open it, it opens in the same page, instead i want to open it in a new page.
    Basically i know how to open a new page, but i don't want to open it when i choose to save.
    How can i do?
    Thanks

    Thanks, but this doesn't solve my problem.
    If i try to save the file, the window i've just opened with _blank, remains opened.                                                                                                                                                                                                                                                           

Maybe you are looking for