Open a browser window in the same window

Hello everybody, I have a question:
I want to open a browser window from an applet. Not in a new window but in the same window.
I already know about the
getAppletContext().showDocument(new URL("http://java.sun.com"), "_blank");
applet-instruction but it opens the html page in a new window. I have already proved changing the "_blank" parameter for "_self" or "_parent" but stills the same: it's opened in a new window. Does anybody could help me please?
Thanks

public void showDocument(URL url)
Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.
Parameters:
url - an absolute URL giving the location of the document.
Applet must be running in a browser for this to work. More information at this website
http://java.sun.com/j2se/1.4.1/docs/api/

Similar Messages

  • Open new window in the same Window

    Im developing a project in JavaFX where I wish to open the new window in the same window
    Here is my code :
    Stage st=(Stage)((Node)t.getSource()).getScene().getWindow();
    I tried this but its giving an exception

    It is possible to specifiy a named window instead of _blank.
    So you could use the following instead:
    web.show_document('html/hello.htm','my_window');
    where my_window can be anything you want to call that browser window.
    However, I have discovered that if you put this in a button trigger, the second time you press the button (if the window is still open) it will not take focus - ie. it remains in the background.
    You can get around this by closing the window if it is already open:
    web.show_document('html/close.htm','my_window');
    web.show_document('html/hello.htm','my_window');
    The close.htm needs to contain some javascript to close the window:
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.opener = top;
    window.close();
    </script>
    </body>
    </html>
    Apparently XP SP2 is a little stricter with javascript and may not allow this. Also, not sure if this works in all browsers, I only tried IE6.

  • How to open a new iView in the same window?

    Hi
      i want to open a new iview in the same window.How can i do that ?
    Thanks

    Hi,
    If u want to code in WDJ  ..
    Use following method
         WDPortalNavigation.navigateAbsolute(
         "ROLES://<PCD location>,
         WDPortalNavigationMode.SHOW_INPLACE,               WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
         (String) null  );
    SHOW_INPLACE is the key
    Cheers!!
    Ashutosh

  • My safari stopped letting me open a new tab in the same window. what happened and how can I get it back to normal?

    When I try and open a new tab in the same window, it wont open a new tab. It leaves the page I am on and goes to the "top sites page."

    Hi,
    If you have got to  Mountain Lion OS X 10.8.2 and therefore Messages version 7.0.1 then double click the individual chats.
    Once they are in separate windows you can chat like that  (That's the way I used to chat - I didn't even use the tabbed chat)
    It is impossible to create a separate Chat window each new chat (you have to separate them off from the main window which also keeps a "copy")
    New chats are added to the main window even if you have used the red button to hide it. (CMD + 0 from the Window menu brings it back)
    10:49 PM      Tuesday; November 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Whenever I click the + Tab to open a new tab, it doesn't do anything. It seems like it has a safety lock on or something. It will not allow me to open up another tab in the same window.

    I try to open up another webpage on the same window, by clicking on the + Tab Button next to the current webpage Im viewing. For some reason it will not do anything. It will not open up.

    This problem has been associated with the Ask toolbar. You could try disabling it here:
    Tools > Add-ons > Extensions
    You may want to update to 3.6.17 to take advantage of security fixes.

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

    what do you mean by your first use of the word "window"? do you mean a visible frame? a section of the gui that the user doesnt see?
    or perhaps you mean you want to add multiple tabs to a single window, so that switching between tabs shows different windows?

  • Can I set Firefox to open a page link in the same window (not a new tab) so I can just go back to the page instead of having to close the window?

    When I am on some pages, clicking on a article/picture link opens a new tab instead of continuing in the same window. By staying in the same window, I can back click on my mouse and continue on with other reading/links on the original page without manually having to move the mouse and click to close the tab. For example: on news pages, if I click on a financial article, a new tab opens with that linked article on the website's financial site. If I keep going back to the original page w/o closing tabs, I end up with too many tabs open.

    yeah, instead of using multiple windows, you can use multiple tabs inside one window. That way, you can browse multiple websites at once without having to flick back and forth between multiple windows.
    To open tabs of the websites you want to browse, just right-hand click on whatever website you want to visit (For example a site from your bookmarks or a site from a Google search result) and select 'open link in tab'.

  • Opening windows in the same window

    Hi All,
    When I open any folder in linux a separate window opens I want to open it in the same window, How ca I do that??

    If you want to make browser windows (the ones that don't open new windows while browsing through folders), you can, when you've opened a file browser window, do:
    Edit, Preferences, tab Behavior, check 'always open in browser window'

  • Open Web java Analyzer in the same window

    Hi,I would like to open java applet in the same window base Internet Explorer window.According to documentation I shoud change Analyzer.jsp file parameter from:<PARAM NAME = UseFrame VALUE = "True">to<PARAM NAME = UseFrame VALUE = "False">When UseFrame is set to "False" then login window opens, I have logged in with username and password and then nothing happens. At web browser status bar there is a message: "Opening http://olap/Analyzer7_Server/Dispatcher". Nothing happens!What should I do to make my java applet working in the same window?By the way, if UseFrame is set to True then Analyzer works fine.Thanks,Grofaty

    Hi,I have found out the solution:1. Opened Analyzer.jpf file2. Deleted all <table> to <object> html tags. (but didn't delete <object> tag)3. Deleted </table> to </object> from down to up of the file (but did't delete </object> tag)4. Deleted <embed> to </embed> tags.5. Deleted <comment> tag6. In object tag I have added WEIGHT to 100% and HEIGHT to 100%7. Changed parameters from param name=UseFrane value ="True" from "True" to "False".The problem dissapeared. So no more help is needed.Grofaty

  • How to open XML form item into the same window?

    Hello All,
    I've developed a xml form, when I click on the  item with KM Navigation Iview It opens in a new window.( _blank ).
    Is there a way to open it in the same window ( _self )?
    Thanks
    Amit Yosha

    Hi Amit,
    at the moment, this is not configurable. See XML form display in same browser window for possible workarounds.
    Hope it helps
    Detlev

  • Open a URL link in the same window as SWF file in indesign CS5

    Hello,
    I am trying to create a SWF file using indesign CS5.  I have created buttons and placed in URL links but they always open another window.  I would like to know if there is a way to have the URL open in the same window that the SWF file has been created.  I tried, putting "_self" to target it in the URL bar, but nothing works.
    Thanks in advance
    TK

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • Can we open a linked report in the same window instead of new tab

    Hi,
    Please suggest me i have a link to another layout on one of the layout in our report. When ever i click on the link in the layout it opens a new window.
    i don't want that to happen can i have it in the same window?
    thanks
    Vijay

    What is your report template type? Is it RTF or XPT (Layout Editor)?

  • Opening a web page in the same window ...

    Hi all,
    I wanted to open a web page in the same content area(window) and not in an external window . Could you tell me how its done ...
    Regards,
    Jayant.

    hi
    check out this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/e7c24122e3c317e10000000a155106/content.htm
    create a exit plug as mentioned in link.
    in the action event handler of button gives this.
    public void onActionExitButton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExitButton(ServerEvent)
    String logoffURL="http://help.sap.com/saphelp_erp2005/helpdata/en/16/d3643fce8bb01ae10000000a114084/frameset.htm";
    wdThis.wdGetDynamicProgrammingInterfaceViewController().wdFirePlugToexit(logoffURL);
        //@@end
    hope this helps,
    Regards,
    Arun

  • Why firefox in my desktop can't open a new tab in the same windows?

    I can't open a new tab by clicking the + symbol. I don't know why this happen. If I want to open a new tab, I have to take a right click and then choosing open new tab. I think this is so terrible, I can't access the page on the same windows.

    Uninstall the '''''Ask Toolbar'''''. It can cause that problem.
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    If that does not solve your problem:
    *See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I am not able to open a new tab in the same window.

    I was able to opennew tabs in the same window but now I am unable to do it

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

Maybe you are looking for