Javascript window.open needs to always open in a new window

I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
I have added this javascript to my page html header
function launchAbout() {
about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
return false;
I then have a html region with the source as:
A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
Edited by: user531645 on Sep 24, 2009 7:33 AM
Edited by: user531645 on Sep 24, 2009 7:38 AM

I was able to fix my problem. I had to change the java script to this:
function launchAbout() {
about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
return false;
}

Similar Messages

  • When open pdf file , always open the comment window.

    Hello
    When open pdf file , always open comment window. I close comment window and exit the adobe reader, but re run the pdf file, always open comment popup window.
    It is very inconvenience, interrupt my seesight.
    How can I not open comment window when I run the pdf file?
    help me please.

    I use Windows 7 Professional K, Reader version is Adobe reader DC 2015.007.20033.

  • Can you open a second jsp page as popup/new window?

    Hi all gurus!
    I have a question regarding popups/new windows in an iview application. Instead of starting with a question let me instead describe what I want to do.
    We have a jsp page that presents a search and then the search result in a table where one column is "clickable". When the user clicks a cell a server round trip retreives data specific for that cell value. This is standard functionality and already fixed so here is what differes: we want a new jsp window to open like a popup, with the data retreived from the server round trip and at the same time the first page with the table shall still be there so that you just can close the popup and click the next cell which creates a new server round trip and a new jsp popup and so on.
    My solution which doesn't work yet: In application "a" I have a JavaScript for the clicked cell which opens another iview application "b" in a new window, by window.open("navurl_to_the_iview"), and that works fine.
    At the same time the value of the clicked cell is written to the data bean and the bean is put in the http session (since component session does not reach between applications).
    The second iview "b" retreives the bean from the http session and fills the jsp page with data.
    Here is now the problem: no data is displayed and this because the iview "b" retreives the bean BEFORE iview "a" has been able to put the bean/value into the http session. How do I know this for sure? Simple, if I do a refresh of iview "b" the value is displayed.
    I could do a JavaScript that recursively checks if the value in the bean is null or not but then I have to do a method that retreives the bean from the http session each time.
    This could work but I wonder if this is the most simple solution. So my question for you gents and madams is: do you know of a more simple solution?
    Best regards
    Benny Lange
    Edited by: Benny Lange on Oct 6, 2009 11:33 AM

    Hi you all.
    In this case the solution was to pass the id in the url to the second iview and let that iview use the id to retreive data from the backend system.
    But I still think the question is interesting, if it's possible to open a second jsp window after a server round trip and still have the first one open.
    All the best
    Benny

  • Opening A BI Publisher PDF In A New Window

    I have a process in Apex were the user clicks on a button to open a BI Publisher in a new window.
    The user clicks the button, the new window appears (blank), then the adobe file download window appears and they have to click open. Then the adobe file download disappears and the report appears in another new window.
    javascript:popupURL('&BI_URL.Guest/TEST/TEST/TEST_414/MER_FORM_414A/MER_FORM_414A.xdo?_xpf=&_xpt=1&P_FORM414_ID=&PXX_FORM_414_ID.&_xt=MER_FORM_414A&_xf=pdf')When they close the report window, the blank window is still there and they have to close that aswell
    The users are complaining that there are too many clicks. Is there a way so that the adobe file download window does not appear and the report opens automatically.
    Help appreciated
    Gus
    Edited by: Gus C on Nov 11, 2010 2:29 AM

    Sorted
    Gus

  • After opening Firefox, how do I stop every new window I open from having old tabs?

    Whenever I start Firefox, it opens a window with tabs I used from a previous session, which is what I want since I set it on Tools > Options > When Firefox starts. However, whenever I open new windows after I have opened Firefox, it always opens four tabs along with my homepage. I tried deleting the four tabs from history then opening a new window again, but it still opens five tabs in the new window. This started around last week. And I don't think I did anything different. I was just surfing the net as usual.

    Check the home page setting.
    * [[How to set the home page]] - Firefox supports multiple home pages separated by '|' symbols
    See also:
    * [[Preferences are not saved]]

  • How to open links from document library in a new window?

    I have a column called "Links" in document library, i want to open those links in a new window. Please guide me on this how to achieve this.
    Thanks
    Ramanjulu Naidu N

    hi,
    See whether these links help you -
    http://preachingsharepoint.blogspot.com/2012/06/open-document-in-new-window-from.html
    http://stackoverflow.com/questions/5119919/sharepoint-links-how-to-open-in-new-tab-window
    http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/
    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
    http://www.andrewconnell.com/Adding-OpenInNewWindow-option-to-SharePoint-Links-lists
    http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • I cannot open a new browser window by double clicking Firefox icon or selecting NEW WINDOW from the file menu.

    I can open only 1 browser window and I can't open another or multiple windows by double clicking Firefox icon or selecting NEW WINDOW from the file menu.
    Looking forward to your earliest reply.
    Thanks and regards,
    Sheraz

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I deactivated Acrobat 9 Pro from a Windows 8 laptop and installed it on a new Windows 8 laptop and got the error message "Invalid Serial Number." I am entitled to this installation, can someone help?

    I deactivated Acrobat 9 Pro from a Windows 8 laptop and installed it on a new Windows 8 laptop and got the error message "Invalid Serial Number." I am entitled to this installation, can someone help?

    I see that the number in my Adobe Account is a MAC serial number – I purchased both the Mac and Windows versions of the program. I tried to enter the serial number of the Windows version into my account and it says it’s already registered. But when I installed the Windows version on a Windows computer I got the invalid serial number message. They have two different serial numbers! Can you help me with this?

  • Show BLOB (open a pdf) from Report in a new window

    I use BLOB Support in Apex 3.2/4.0 (MIMETYPE..) at an IR:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#sthref2199
    Because my BLOB (pdf,...) should be opened without asking for download or open I use content_position INLINE.
    That works fine, but I would like to get the opened document in a NEW window , not the same window ??
    ( If I klick the download with "open in a new window" it works fine)
    Any idea?
    I remembered Link-Attribute target="_blank" (that works fine)
    So my first idea was
    (1) defining the BLOB column as a Link (type=URL) call APEX_UTIL.GET_BLOB_FILE_SRC and use Link-Attribute target="_blank".
    But APEX_UTIL.GET_BLOB_FILE_SRC needs an ITEM ... and what about MIMETYPE...
    =>It will not work.
    My second idea is
    (2) Link from the report to another page having a hidden Item for the linked ID and
    create an hidden ITEM (having the BLOB attributes) like described at Dimitrie's BLOG
    http://dgielis.blogspot.com/2009/05/using-apexutilgetblobfilesrc-on-public.html
    At this page a process on load before header call APEX_UTIL.GET_BLOB_FILE_SRC with these items as parameters
    => Seems to complicated
    Any better idea?

    Hi,
    You know I have to thank you for the solution as by asking your question you provided me with a way to solve my problem .....
    As double clicking a pdf file when the application is open with no open document works as I want it to (i.e. showing the new document in the existing acrobat window), so I decided to try out a plain vanilla shell instruction in vba instead of the AVDOC.Open statement ... and ....although not very programmatically aesthetic ....  it works.
    rgds

  • Can I open dock folders in tabs instead of new windows?

    Hey, guys!
    I'm using OX 10.9 and in Finder Preferences I have "open folders in new tab instead of new window" box checked. However, when I click on "open in FInder" in a folder I have in my Dock, such as Dwonloads or Documents, it pops up in a new Finder window. In other words, I'm looking for the TotalFinder behaviour without using the app. Any help?
    Thank you all!

    Hi, John, welcome to Apple's user-to-user discussion forums.
    Does anyone here know of a way to open new windows without using command click in a tab?
    If you want links on a web page to open in a new tab, you need to command-click on them. This will work both for links set up to open in the same window and those set up to open in a new window. There is no setting in Preferences to make links on a web page automatically open in a new tab.
    There is a preference setting to open links from other programs, such as Mail, in a new tab. In Safari's Preferences, click on the General icon. Towards the bottom where it says "Open links from applications", check "in a new tab in the current window".

  • Opening link in the report in a new window

    Hi,
    I need to have a link in the html report which opens the destination in a new browser window. How can i achieve this? As of now i am using the following code, but the link is not opening in a new window.
    <fo:basic-link external-destination="{.//destination}" show-destination="new">
    <fo:inline>
    <xsl:value-of select=".//heading" xdofo:field-name="heading"/>
    </fo:inline>
    </fo:basic-link>
    Let me know what the problem is, as well as any other way to achieve the same.
    Thanks,
    Shanmuga.

    hi
    there is another way to drill down the report of web intelligence.for that we have to customize in the universe level create a folder in custom hierarchy and add your two objects to that folder, i.e empid. and deptid. the order of these objects should be in the way the drilling happens that means if you want to drill down from empid. to deptid. then empid. should be the first object of the folder,save and export the universe to the CMS.Then it ready to use for webi report.Build the query for the report and enable the drill option in the report.Now the report is ready for your requirement.
    thanks & regards
    Sreekanth K

  • Without touching the keyboard or the mouse, Firefox opens up 5 times, each in a new window.

    I turned on my computer this morning and while it was booting up I went to do other things in the house. When I returned, five windows of Mozilla Firefox had opened up and I hadn't touched the keyboard. I closed them out, did what I needed to do on the computer briefly, and then left my desktop as is. When I looked over, they had opened again. And, just now five windows of firefox just opened up, WHILE I was typing! Is there anyway I can fix this?

    hello rhart13, this sounds strange - firefox hasn't any built-in functionality to start itself... could you run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] and see if these come back clean?
    [[Troubleshoot Firefox issues caused by malware]]

  • 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

  • Problem in Opening Attachment of Sharepoint 2010 list in new Window?

    Hi,
        I have a sharepoint 2010 list which contains attachments in list items. As per our requirement list should open in modal dialog. when users trying to open attachment from modal dialog its closing modal dialog and opening attachment in same
    window.
       Now the requirement is to open list item attachment in new window.
      I have tried with below script.
    function AttachTargetToAttachments()
     var anchors = document.getElementsByTagName("a"); 
    for (var i=0; i<anchors.length; i++) {
            var anchor = anchors[i];
            if (anchor.getAttribute("href"))
              anchor.target = "_blank";
    This is working when list item opening in separate browser(landing in different page). But when list item opened in modal popup its not working. 
    Please help.
    Thanks in advance.

    Hi,
    If this does not work in modal dialog, the workaround is to avoid to open the dispfrom.aspx page in
    modal dialog when clicking the Title field.
    You can open Allitems.aspx page using SharePoint Designer> locate the title filed <a onfocus=”onlink(this)
    …… onclick =”EditLink2(this,….)”>, remove the onclick =”EditLink2(this,{$viewcounter)}); return false;” from the tag. It will open the dispform page in normal when clicking the field.
    Xue-Mei Chang

  • Firefox does not want to open popup or when I do "file new window" it does not open it too.

    When I click on a link that opens a popup, firefox does not open it. Same for "File> New Window." Then, often after Firefox starts to malfunction and no longer wants to open my bookmarks. I uninstalled and reinstalled firefox, removed all extensions .. But this does not solve my problem. can you help me please?
    Excuse me for my mistakes in English, I am a French person and I try to speak English the best I can so that you can solve my problem. Thank you.
    == This happened ==
    Every time Firefox opened
    == I clic on a link that opens a popu

    Your above posted troubleshooting list shows quite a few extensions.
    Did you really disable all of them and still had the problem?
    See [[Troubleshooting extensions and themes]]
    Which security software (firewall) do you have?
    Some can block pop-ups as well.

Maybe you are looking for

  • Reader Mac installer problems

    Hi there New to the forum, just after seeing if anyone has a soloution for me: Ive checked someonline help topics but dont seem to have found my answer and saw another discussion on here , that sounded similar, but when i clicked on it it to read the

  • SAP Query iview  properties

    Hi Portal guru I am trying to create SAP Query iview but I am facing some problem. In EP 6.0 there was a standard template for creating Query iview, but there is no standard template in EP 7, but we should create a new iview from par com.sap.pct.srv.

  • What is the table for  inbound delivery and PO

    Hello, I did one inbound delivery with reference to PO, the SD Documnet Category:7(Shipping Notification/Delivery) I tried in LIKP,EKBE tables for Inbound delivery and PO relation. I didnot find, Can i have the table name for findinh the PO and Inbou

  • USEBTRFS in rc.conf

    Hi, I set USEBTRFS="yes" in my rc.conf I have a partition with btrfs but during the boot I see anything about this partition... Or I did not understand what this variable XD tnx

  • Help with running my web app using JDeveloper 10g Release 3 (Version 10.1.3

    Hi All. I'm having an issue trying to run my web app. Here is what's happening. I have a JSP and I right click on it and choose "Run". All my files compile successfully and I get the following out in the Embedded OC4J Server - Log: [Starting OC4J usi