Javascript to open new window

Dear members
Is it possible to write a Javascript which opens in Safari or Firefox a new page either in a new window or a new tab.
The open command (new window or new tab) should be able to be choosen by the user.
Do I'm being right here?
Thank you very much for anyones help.
Greetings from Switzerland
Thomas

Finished

Similar Messages

  • Adobe Javascript call opens new window

    Folks:
    We have an existing system that relies on PDFs stamped with the following code to execute successfully on a DidPrint event
    getURL("/canada/recipdoc2.nsf/redirect?openpage");
    In versions 6, 7, and 8 this URL is opened in the same window (actually frane) that the PDF was in. However, with Adobe Reader 9 this opens in a new window.
    Does anyone have any insight as to why this might be happening? Is there a setting that I can adjust? Or a fix that I can employ?
    Please let me know.
    Thanks.
    Cheers,
    John Collis

    Finished

  • JavaScript to Open New Window Not Working

    I am trying to program a button to open a pop-up window. I
    have read several of the previous posts regarding this problem
    (seems to be pretty common), and have tried the resolutions, but
    still no luck. My button (despite the code) simply just advances to
    the next screen. For the button, I have programmed it so it
    launches the following JavaScript code:
    javascript: openNewWin();
    In the standard.js file I have copied the following code per
    a previous post:
    function openNewWin()
    var o = window.open('CDMTS Course Map.htm','Course
    Map','left=0, top=0, width=1280, height=800, titlebar=no,
    menubar=no, toolbar=no, location=no, directories=no, resizable=yes,
    scrollbars=yes, status=no');
    o.focus();
    In the post that I received this direction, it mentioned
    something about putting this code in the Publish folder of
    captivate. I'm not 100% sure that I've placed it in the right one,
    but I think so.
    Can anyone help me with this problem? It seems like such an
    easy thing to do!
    Thanks,
    Kristi

    Hello Eric,
    Thanks for the prompt reply and suggestion.
    Unfortunately command - option/alt - click doesn't do it either.

  • Firefox 31 (Ubuntu) won't open new window or Javascript pop-ups

    Hi, I am running Firefox 31.0 in Ubuntu 14.04 having the following problem:
    1) When I click on New Window or New Private Window in the File menu, nothing happens, same with pressing Ctrl-N.
    2) Certain websites are not able to open new windows or pop-up windows through Java or Javascript
    (e.g. the command: javascript:popup_imp(...) does not produce anything)
    I did try safe-mode and there everything works fine. Then I restarted firefox (several times) with all plugins disabled but still had the same problem, so I don't know what causes the difference between safe-mode and no plugins.
    (By the way, there is no problem opening a New Tab by pressing Ctrl-T or from the file menu, the issue is only the New Window and New Private Window).
    Is there any other way to narrow down what is preventing the new windows?

    Hi cor-el,
    thanks for your answer, however as I explained in my post, safe-mode does not present the problem, but disabling the extensions on its own does not help (i.e with all extensions disabled the problem still is there).
    Also, I did not have this problem in the past and I did not change anything graphics related (unless something was changed software-wise internally and I did not notice).
    And yes I am currently using the default theme.

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • How stop FF31 from opening new window? I want to open all links in new tab at top of page.

    I think the following, quote below, from the help page is my problem.
    I have this one website I use that when I click on a link within the website it is opening a new window with the tab at the bottom. Also, when this happens, I am losing the orange FireFox rectangle, bookmarks and navigation options. How can I set FF31 so that the link opens in a new tab and I keep all my options? I am using Classic Theme Restorer 1.2.3. I also notice that in the new window I lose the ability to use some of the addons.
    I have two laptops and both are running FF31 and W7. One of them is working perfectly and the other is having this problem. As far as I can tell they are both set up the same. The only difference is that when I upgraded to FF31 they both had difference older versions of FireFox. I also read in the help forum that maybe I need to go back to FireFox 28 to accomplish what I am trying to accomplish.
    I noticed that when I go under about:config that the version of FF that is not working has fewer available options versus the version that is working. An example would be that the working version has "browser.tabs.onTop" where on the other laptop this is missing.
    >>>Open new windows in a new tab instead: This option controls whether links from other applications or from web pages which request to open them in new windows are opened in a new window or a new tab in the most recent window.
    Note: If you have chosen to open pages in new tabs, Firefox will ignore this option and will open a new window from a link if the page author specified that the new window should have a specific size, because some pages can only be displayed correctly at a specific size.<<<
    Thank you in advance for any help,
    yeto

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • Opening new window problem

    Hi,
    I have a problem in my application when opening new window by clicking on the button ( window.open('http://....') ). After new window opens, "parent" window becomes dead - all session variables are lost and as a result it throws user to the login screen (default page).
    I noticed that URLs in both windows have the same CFIDs and different JSession IDs.
    Does anybody know how to handle this problem, another words how to make new window open with new CFID?
    I am not sure if this is the reason, but cannot imagine anything else.
    Thank you in advance,
    LKhodab.

    According to the HTTP protocol standard all requests are completely stateless and have absolutely no connection to any other reqeust that come before or after.
    To allow session state management, ColdFusion uses cookies to know when a new request should share data with some request that came before it.  These cookies can either be a pair named "CFID" and "CFTOKEN" or one named "JSESSIONID".
    When you use JavaScript to create a child window in a browser, ColdFusion knows nothing about this.  All it knows is that it is getting another request.  If this request does NOT contain valid cookies identifying it as belong to some existing session, ColdFusion is going to create a brand new session with completely new data.
    If you are seeing different JSESSIONID values when you open this child window, this is probably what is happening.

  • Imageviewer - imageLinkTarget:'_blank doesn't open new window

    I have searched the forums but nobody seems to know why - when you insert a flash imageviewer in dreamweaver and set the imageLinkTargets to _blank it does NOT open your links in a new window - Can ANYONE provide a solution to this PLEASE!!!

    This problem can be avoided in code:
    // before Adobe code insert function for open New Window
    <script>
    <!--
    function newWindowLink(param_url) {
    open(param_url);
    -->
    </script>
    <script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    //insert some variables with Urls-links
    var url1 = "http://www.your_web_site1.com/";
    var url2 = "http://www.your_web_site2.com/";
    var urlX = http://www.your_web_siteX.com/;
    AC_FL_RunContent ( 'codebase',.......
    ,imageLinks:[\'javascript:newWindowLink(url1)\',
                       \'javascript:newWindowLink(url2)\',
                       \'javascript:newWindowLink(urlX)\']}',
    ); //end AC code
    </script>

  • 'open new windows in a new tab instead' not working in Firefox 32.0.3 How to fix?

    recently I've noticed that the 'open new windows in a new tab instead' function which I already have set, is no longer working, I keep getting sites that open a new window instead - and I'd like it to stop please. I'd like FF to revert to the behaviour I have set up. How do I do that?
    I have win 7 and I'm running FF 32.0.3

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • My Setting won't stay! (open new windows in a new tab instead)

    I m currently using Firefox 5.0 Korean version.
    Everytime i un-check the "open new windows in a new tab instead" option, after a while, it gets checked again somehow.
    I tried clearing cookies and un-installing all the addons, but it keeps being checked again.
    How do i make it stay un-checked..?

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • MassCommand Opening New Window

    Hello....
    Does anyone know if I can create a new custom command that allows the user to select a resource (i.e. like a mass command event), select the command, and open a new window....
    For example... I would like to be able to select a resource and display the properties of that resource (details-->properties)
    I can get it to work if I extend AbstractCommand, but not if I extend AbstractMassCommand.  Does AbstractMassCommand support the getLinkAttributes method?
    Any help is much appreciated.

    We have contacted SAP and they informed us that the getLinkAttributes() method usually used for things like opening new windows is not applicable to mass commands.  They went as far as to say that it didn't make sense to open new windows based on mass commands.
    Having said that, I have come up with a less than perfect workaround.  If you implement the AbstractMassCommand interface and do something similar to the following:
    public IRenderingEvent execute(IScreenflowData sfd) throws WcmException
    TextView tv = new TextView("<script>window.open('http://www.cnn.com');</script>");
    tv.setEncode(false);
    ConfirmComponent cc = new ConfirmComponent(ConfirmComponent.OK_CANCEL, this.getResourceContext().getLocale(),tv);
    OneStepScreenflow oscf = new OnseStepScreenflow(sfd,this.getAlias(),resource.getRID(),cc);
    return oscf.execute();
    The trouble with this is it forces you to have a one step screen with a confirm component on it... not the ideal case for what I wanted to do.
    I have not so far figured out how to fire JavaScript from the original window without going to the secondary window.
    Hope this helps some, and if you find any more please let me know.

  • Problem when open new window...

    Hi,
    I have a flash website and one problem with it.
    When I push on a button, it has to open new window.
    thumb1.onPress = function(){
    getURL("
    http://...............as.html",
    "_blank");
    But I want that the opened window will be no resizable, no
    location, no menubar, no scrollbar, no status, no toolbar, no
    fullscreen. Can actionscript do this?

    Hi, Motiejuss!
    You can use the getURL to call a JS function.
    Just like
    getURL("javascript:window.open('
    http://...as.htm', 'foo', 'width=400
    height=400');");
    But the best is to use ExternalInterface, in Flash 8.
    Bye,
    CaioToOn!

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

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

Maybe you are looking for