Open URL in current browser window

I'm developing an application that works side-by-side with the user's default web browser. The browser communicates with the app through a proxy, and that works great. The issue I'm having is going the other way. So far, I've only been successful opening a new browser window each time. However, it would be much better to be able to open a page in the current window/tab. I mainly want this to work with Firefox (or anything other than IE). Has anyone ever done this, and is this even possible with Java?
Thanks in advance.

Desktop.getDesktop().browse() is what I'm using currently. I don't think you understood my problem. Currently it is opening in a new browser window. In Firefox, it's opening in a new tab, since I have it set to open in a new tab instead of new window. But, what I want it to do is open in the CURRENT tab. In other words, navigate from the current page to a new page, just as if the user had typed in an address into the address bar and pressed enter, or just as if he had clicked a standard link on the webpage.

Similar Messages

  • Open url in new browser window

    Hello,
    i am looking for a possibility to open an URL in a new browser window, when the end-user clicked on a button.
    I am aware of the LinkToURL view element. Unfortunately i would prefer to use a button element instead of the LinkToURL elementl. Can anyone provide me with a solution? Maybe there is a possibility to implement the needed coding in the action assigned to the button.
    Thanks,
    Dirk
    Message was edited by:
            Dirk Jäckel

    Hi Dirk,
    Use <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm">IF_WD_WINDOW_MANAGER</a> method CREATE_EXTERNAL_WINDOW and pass URL parameter in button click event handler. And don`t forget to call OPEN on new window instance.
    Best regards, Maksim Rashchynski.

  • When I open a second Firefox browser window, the URL address window, instead of showing the URL, says "Go to a Web Site;" also, and more importantly, the "back" button is greyed out. This is a new problem, and the first Firefox window I open works fine.

    After I open the first Firefox browser window, any additional window I open does not open my homepage, but opens a blank page with "New Tab" showing on the tab. An orange "Firefox" tab with a drop down arrow shows at the upper left hand corner of the screen. All of the options (File, Edit, etc.) are greyed out, however they will work if you move your cursor over them.
    The URL address window says "Go to a Web Site". After I've gone to a website, the back button remains greyed out and I am not able to go back to a previous page. My RoboForm and Netcraft toolbars only show up in an abbreviate form. The add-on bar doesn't show up at all.
    Again, this is a recent problem, and only happens after I've opened one browser window (which works fine) and then open additional browser windows (as few as one additional).

    I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)

  • Why is Firefox opening a separate browser window for each link instead of a new tab in the current browser window?

    Suddenly firefox has started opening a new, separate browser window for every link and thing I open. It used to just open a new tab in the current browser. I must have closed down 15 browsers when trying to get back to a previous web page - the back button doesn't work when each click leads to a new window opening! I went into options and my settings have not changed, they still say "open new tab" for links. This just started happening out of the blue today. What's up?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Bug report: on LabVIEW 2011 SP1 and Windows 8 'Open URL in default browser.vi'

    Dear colleagues,
    Here is a bug report.
    Culprit: 'Open URL in default browser.vi'.
    System: Windows 8, Professional. LabVIEW 2011 SP1.
    Abnormal behaviour and steps to reproduce:
    Above mentioned VI doesn't work when LabVIEW was started with administrator privilegies. And it works as expected when LabVIEW running in normal (non-administrator) mode. 
    Looking forward to see this fixed.
    Best regards,
    Igor Titov.
    CLD.
    =========================
    Igor Titov, CLA
    WebPager - put LabVIEW front panels into the web page
    Labicom.net

    Hi Igor,
    Unfortunately LabVIEW 2011 SP1 does not support Windows 8. I tested this behavior with LabVIEW 2012 SP1 on Windows 8 and everything worked correctly. 
    Regards,
    Jeff Peacock 
    Product Support Engineer | LabVIEW R&D | National Instruments 

  • Quizzes: Open URL on current window don´t work

    I'm using the open URL in current window option for both results pass or fail, if I pass it works fine, the new URL opens in the same window but if I fail it opens in a new window. How can I fix it ??
    Thanks in advance.

    I'm using the open URL in current window option for both results pass or fail, if I pass it works fine, the new URL opens in the same window but if I fail it opens in a new window. How can I fix it ??
    Thanks in advance.

  • How to open iview in same browser window

    Hi.
    I am using EP 6.0
    I have created sever iviews of type IAC. All was working fine.
    Now suddenly the iviews have started opening in a new browser window. I have check the iview poperty "Launch in new window " . Its set to "Display in Portal Content Area".
    All I want is, when I click on any iview, a new internet explorer window should not pop up, but the iview shud open in the same window.
    Can anyone advise me how to achieve this ?
    Thanx
    Vikram

    Can you try and check what happens by changing the work protect mode as follows
    Systemadministration -> Systemconfiguration -> Service Configuration -> Applications -> com.sap.portal.epcf.loader -> Services -> epcfloader. Set the "workprotect.mode.default". After you have saved the entry. ricght click on com.sap.portal.epcf.loader in the tree menu and choose "administrate". Click on "restart".
    Check this url might be relevant for u
    ESS Links open in new windows

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • Why do we use open URL in default browser function? What are the uses of it?

    Why do we use "open URL in default browser" function?  What are the uses of it?

    kdm7 wrote:
    Okay.
    So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
    P.S  I,m a newbie.
    Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Can I have links open in a new browser window?

    Is it possible to have links to pages outside of my website to open in a new browser window?
    I've created a podcast for my students to listen to.
    I've also created a kind of fill-in-the-blank activity to go along with that podcast, but that activity requires a different window.
    I want my students to listen to the podcast and do the fill-in at the same time.
    So, I'd like for the students to open the link to the fill-in and then click on the podcast on the original page.
    Advice?

    changing podcast links is a bit difficult - but here is a general link of how to open windows in a new window:
    http://www.rowan-cottage.co.uk/Site/Target_Blank.html
    max

  • Open portlet in new browser window

    Anyone know of a way to open a portlet, or a page containing a portlet, from a link into a new browser window? This is different than showDetailsPage, which opens in the same browser window.
    Thanks.

    I tried to do this through Item Attributes for the portlet (clicking the little pencil), where there is a radio button for "Display Options."
    One choice is: "Link That Displays Item in New Browser Window."
    (I do have something in for the "Display Name" which seems to be required to get a link.)
    However, this doesn't seem to work. No link shows.
    (It works fine for
    I have tested this with a Discoverer portlet, and also with a more generic portlet (the "Developer News" portlet in the 9iAS Community portlet provider).
    Is this broken / a bug?

  • How do I find the current browser window width in pixels?

    I'm writing a PHP script that will use the current browser
    window width
    and height, but I don't know how to find that. Is there some
    way to
    capture the width and height of the current window in pixels?
    TIA

    Thanks Micha, you certainly may ask why.
    I posted a message some time ago in the appdev forum about
    the Recordset
    Paging server behavior being geared toward use with tables. I
    was
    frustrated because I wanted to do something with repeated
    div's in a
    liquid site. But the Recordset Paging s.b. locks the number
    of records
    per page to a fixed number. I'm trying to figure out how to
    make the
    records per page a variable that's determined by the window
    width. I've
    created a liquid site with a products page that contains both
    text and
    thumbnail product images. The text occupies 2/3 of the width
    of the
    window, and the div container that holds the floated div
    thumbnails I
    want to account for the other third. The thumbnail div's are
    produced by
    a WHILE statement and I want them to be paged based on the
    number of
    div's that will fit within a container that occupies a
    percent of the
    browser window width. Here's what I've got so:
    $window_size_wide = ; // Current browser window width in px
    $window_size_tall = ; // Current browser window height in px
    $thumb_cont_wide = $window_size_wide * .3; // 30% of window
    width incl.
    padding in px
    $thumb_cont_tall = $window_size_tall * .4; // 40% of window
    height incl.
    padding in px
    $thumb_size_wide = 100; // thumbnail div width incl. margins
    in px
    $thumb_size_tall = 100; // thumbnail div height incl. margins
    in px
    $no_thumbs_wide =
    ceil(($thumb_cont_wide/$thumb_size_wide)-1);
    $no_thumbs_tall =
    ceil(($thumb_cont_tall/$thumb_size_tall)-1);
    $records_per_page = ($no_thumbs_wide * $no_thumbs_tall);
    $offset = ($thispage - 1) * $records_per_page;
    $total_pages = ceil($total_records/$records_per_page);
    etc.
    What I don't know is how to find the current window width or
    height. I
    would also like to know if the $thumb_cont_wide and the
    $thumb_cont_tall
    can be determined in some way based on the div size generated
    through my
    CSS. In other words, I don't want to declare the percent of
    height and
    width in this script, I want to declare it only in my CSS and
    have it
    determined by the browser window width and height. The only
    element I
    want to hard code is the size of the thumbnails as they will
    always be
    the same. It seems to me that something like this could be
    done to make
    recordset paging scalable to match a scalable web page.
    So the question is, can I define a PHP variable based on a
    Javascript
    variable? If so, how? If not, how can I accomplish this? Is
    this just
    not possible?
    Thanks for your help.

  • Discoverer Viewer Open Link in New Browser Window

    We have created cubes with links to details (using Manage Links).
    When selecting the link from Discoverer Plus OLAP, a new browser window opens.
    When selecting the link from Discoverer Viewer, it opens within the same browser window.
    How can we force Discoverer Viewer to open a link in a new browser window?
    We tried adding the TARGET="_blank" to the link but that only gets added to the last parameter (or passed as a parameter).
    Unlike Discoverer Plus parameter, there is no _popup option.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This article by Ted Padova will give you the JavaScript code that will accomplish this: http://acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows

  • Open view in new browser window

    Hi all,
    I have got a webdynpro-application, which contains two windows and two views.
    Actually each window contains one view. The second window is opened as a pop-up-window right now.
    Instead of the pop-up, I just want to open a new external browser window which contains the view.
    Moreover the context of the external browser window has to exchange data with the application itself.
    Does anybody know how realize this?
    Thank you in advance.
    Kind regards, Patrick.

    can help
    some information
    String strURL = WDURLGenerator.getApplicationURL("WebDynpro_PATH", "WindowApp");
    Now u can use this strURL for opening your external window.
    wdControllerAPI.getComponent().getWindowManager().createExternalWindow(strURL,"TITLE",false);
              IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("CallTreeWindow");
              //create the "AddressbookWindow"
              IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
    WDWebContextAdapter.getWebContextAdapter().getParameter("param");
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter(key)
    you should call not "http://www.google.it" but result of something like this:
         public static String resolveURL(String dcName, String applicationName) throws EntryNotFoundException, WDURLException
              IWDDeployableObject deployableObject = WDDeployableObject.getDeployableObject(dcName);
              if(null!=deployableObject && WDDeployableObjectState.STARTED.equals(deployableObject.getState()))
                   boolean found = false;
                   int i = 0;
                   WDDeployableObjectPart[] parts = deployableObject.getParts(WDDeployableObjectPartType.APPLICATION);
                   if(parts!=null)
                        for(;i<parts.length;i++)
                             if( applicationName.equals(parts.getShortName()))
                                  found = true;
                                  break;
                   if(found)
                        return WDURLGenerator.getApplicationURL(parts, null);
                   else
                        throw new EntryNotFoundException( "Application '" + applicationName + "' not found" );
              } else {
                   throw new EntryNotFoundException( "Application '" + applicationName + "' not found in '" + dcName + "'" );

  • Opening More Than One Browser Window

    Hi all,
    Mac Newbie here!
    A quick question.
    If i wish to open more than one browser window, how do i do it?
    When i used to use a PC, i just clicked IE everytime i wanted to open another window.
    However, if i try to do that with Safari, nothing happens.
    I have looked through various settings pages but i cant seem to find anything to help.
    Any ideas?
    many Thanks!!!

    Hi Jason,
    Welcome to Apple Discussions & Mac!!
    If i wish to open more than one browser window, how do i do it?
    Under the Safari Menu Bar-> "File" click on the menu item "New window"
    Hope that helps answere your question. Please let us know.
    Eme"~[)
    Helpful.. Solved.....Why Award points?

Maybe you are looking for

  • HELP!  iMac won't show my Nikon D800 NEF files.

    Nikon D800 NEF files will transfer from my Nikon D800 to my iMac, but they will show only as a "list" in the folder that I transfer them to.  They will not show as thumbnails, nor open with "image preview".  Tiff and JPEGs will transfer and show as t

  • How to create sap scripts?  script is a language  how to create script ?

    how to create sap scripts? script is a language  how to create script ?

  • Getting a number of class path load errors

    Hi, I'm new to jdeveloper and have been perusing the different features and sections of the IDE. When I click on the extensions tab, there are quite a few warnings stating that several class path load entries not found. Is this normal or is there som

  • Mac Pro front USB cable

    I have an original Mac Pro and it is missing the cable that connects the front USB to the motherboard. It looks like I can just use a standard SATA cable. Can I do this, or does this have a special pinout?

  • CS6 photoshop installer requirements

    I have purchased the CS6 Photoshop but when I try installing it a message pops up saying that my mac doesn't meet the system requirements of the installer. It requires version 10.6.0 and I own the Mac OS X version 10.5.8. Do I need to return my order