How to bring the new window in front of old window

Hi everyone,
Here is what I have:
there is a hyperlink on Page1.jsp, which opens another page Page2.jsp through onclick=
window.open('./faces/Page2.jsp','mywindow','width=500','height=600');
However, after Page2.jsp is opened in a new window, it is always behind the old window with Page1.jsp. That is, Page1.jsp always gets the focus. I have to click Page2.jsp at windows' bottom bar in order to bring it up.
How to set Page2.jsp window in front of Page1.jsp window as default?
Thanks in advance,

it should have the focus
jsut tried your code and my browser keeps focused on the other window
i would be looking elsewhere for your problem
maybe in your browsers setup?

Similar Messages

  • TS3212 after downloading the new version of Itunes onto my windows 8, my windows freezes when attempting to gain access to itunes store.  How do i Fix?

    After downloading the new version of Itunes onto my windows 8, my computer freezes when i attempt access into itunes store.  How can I fix this problem?

    Never heard of that being caused by installing iTunes. Try asking on a Windows forum. This isn't a problem with iTunes or any other Apple product. If you believe it is, uninstall iTunes. If the problem persists, you'll have to seek advice on a Windows forum or contact Microsoft for support.

  • Urgent: How to bring the same pricing procedure in reversal order??

    Hi,
    We have recently implementated CIN at our client location. For the orders present in the system before CIN implementation, when we are creating the reversal orders, system is bringing the new pricing procedure with CIN condition types?
    Can we bring the same pricing procedure in the reversal order as in the sales order? 
    Please advise urgently.
    Regards,
    Peeyoosh.

    Dear Peeyoosh
    I am unable to understand from your comments
    "For the orders present in the system before CIN implementation, when we are creating the reversal orders"
    Please let me know how do you reverse a sale order.  To my knowledge, we can reverse delivery and billing but not sale order.  Either we can close the sale order by assigning some reason for rejection or delete the sale order.
    This being the case, please let me know why you are reversing and how you are reversing.  If you want the same pricing procedure for both normal sales and returns, then maintain the same pricing procedure for both document types.
    thanks
    G.  Lakshmipathi

  • How to bring the hyperlink in a JLabel object ?

    How to bring the hyperlink in a JLabel object ?
    I tried the following--> [ this is a sample ]
    JLabel label;
    label=new JLabel("<HTML><A HREF='file://D:/Examination/calc.exe'>Calculator</A></HTML>");Using this JLabel object in an JDialog the label comes perfectly with such a look of the hyperlink
    [ Blue coloured and underlined ] that's all !!
    It doesn't work anything that it should do.
    While all the html tags work perfectly in java then why the hyperlink in label doesn't ?
    If you have an idea then please send me the code.
    Thanks!

    see JXHyperLink at https://swingx.dev.java.net/
    Yeah, I looked at this. I agree with the other guy who said that all this does, presumably, is change the color of the text when the button is getting mousedover. That doesn't solve anything.
    As far as JEditorPane, it has its bad points and ... well, mostly bad points. However that's not really fair. JEditorPane was not designed to be on the level of an IE or FireFox.
    The BEST thing to use JEditor's web browsing facilities on is for creating your own documentation and help pages for software you are developing. Here is a list of some of the things JEditorPane does not come equiped with (as of 1.4 I haven't tried playing with it in 1.5):
    1. Form submission, PUT, and GET
    2. Download status
    3. Caching
    4. Cookies
    5. Plugins (ie Java, Flash, Quicktime)
    6. No javascript.
    Beyond that it is extremely brittle in parsing the HTML, and if the HTML is not totally well formed (and many pages are not) you won't get anything

  • How to Change the Screen Saver Settings to Mystify in Windows 7 using vbscript?

    HI All,
    How to Change the  Screen Saver Settings to Mystify in Windows 7 using vbscript?
    Thanks
    Divakar

    First: What is a GPO?
    Second: jrv, that was not too helpful in general. someone should do some actual code.
    Bob Blork - Mark as answer if it helped!
    This is a forum for technicians and not for home users.  GPO is what technical people use to manage Windows. THe script to do this is in the link I posted - how is that not helpful?
    I know this is all over your head.  I am curious as to why you would respond in a technical forum to a question you do not understand.
    We do not provide free scripts.  We also will point users at correct answers.
    This is not a forum for homw users or for simple support questions.  It is also a thread that has been  answered for a long time.  Perhaps you should start a new thread if you have an actual question about scripting.
    ¯\_(ツ)_/¯

  • How to initialize the new internal hard disk in LapTop ?

    Folks,
    Hello.
    My LapTop model is HP Pavilion dv4-2045dx entertainment notebook whose host operating system is Windows 7.
    Because the current hard disk capacity is not enough, I need to replace it with a new hard disk with bigger capacity.
    After take out the old hard disk and install "750 GB 7200 rpm Western Digital Scorpio Black 9 mm internal hard drive" into my LapTop, how to initialize the new hard disk ? What is the host Operating System for the new hard disk ?

    Please see the answer in your other thread.
    Which external hard drive supports Oracle Linux 5 on top of VMPlayer ?

  • I am not getting the new firefox 4.01 button feature (Windows XP)

    I am still getting the old menu bar and not the new Firefox button on my newly installed 4.01 Firefox. My system is Windows XP I watched the "Getting Started" videos explaining how to use 4.01 when I updated, and that was when I realised that something was wrong.

    The new interface is only default on Windows Vista and Windows 7. To get it on Windows XP you need to hide the menu bar. To do that in the View menu select Toolbars, then click on the "Menu Bar" entry.
    If you need access to the menus you can press either Alt or F10 to temporarily display them.

  • How to bring the data from application server to presentation server

    hi,
    i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this  topic.folowing is the code .
    *& Report  ZPFA_HIER_LOAD
    REPORT  ZFPA_HIER_LOAD.
    *---- Declaration of Oracle connectioN
    DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
    DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
    DATA : mfilename type string.
    data: begin of matab1 occurs 0,
          MFL1(9) TYPE C,
          MFL2(5) TYPE C,
          MFL3(9) TYPE C,
          MFL4(2) TYPE C,
          MFL5(8) TYPE C  ,
         end of matab1 .
    data: setid(8) type c.
    data: begin of source occurs 0,
          setid(8) type c,
          end of source.
    *PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
    *PARAMETERS : m_bsenty(8). " type c obligatory.
    *mfilename = P_PFILE.
    EXEC SQL.
      SET CONNECTION :con_name
    ENDEXEC.
    EXEC SQL.
      CONNECT TO :con_name
    ENDEXEC.
    EXEC SQL PERFORMING get_source.
      SELECT set_id FROM UNIT_SET INTO
      :setid
      ORDER BY SET_ID
    ENDEXEC.
    start-of-selection.
    LOOP AT SOURCE.
      REFRESH matab1. CLEAR matab1.
      EXEC SQL PERFORMING evaluate.
    SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
    :MFL5
    where set_id = :SOURCE-SETID ORDER BY MEM_ID
      ENDEXEC.
      if SOURCE-SETID = '80000000'.
       mfilename = '/tmp/aesorg'.
      elseif SOURCE-SETID = '80000006'.
       mfilename = '/tmp/Consolidation_Manager'.
      elseif SOURCE-SETID = '80000010'.
       mfilename = '/tmp/10org'.
      elseif SOURCE-SETID = '80000012'.
       mfilename = '/tmp/20org'.
      elseif SOURCE-SETID = '80000018'.
       mfilename = '/tmp/30org'.
      elseif SOURCE-SETID = '80000025'.
       mfilename = '/tmp/40org'.
      Endif.
      mfilename = '/usr/test.dat'.
    ************************This was i tried***********************
      open dataset mfilename for output in text mode encoding default." IN
    *TEXT MODE ENCODING DEFAULT.
    if sy-subrc <> 0.
    exit.
    endif.
    close dataset mfilename.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME         = MFILENAME
         FILETYPE         = 'ASC'
       TABLES
         data_tab         = matab1
       EXCEPTIONS
         file_write_error = 1
         invalid_type     = 2
         no_authority     = 3
         unknown_error    = 4
         OTHERS           = 10.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
      clear matab1.
    ENDLOOP.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
    close dataset mfilename.
         MFL5 = '0'.
       CLEAR MFL5.
    FORM evaluate.
      if MFL5 = -1.
        MFL5 = ''.
      ENDIF.
      concatenate MFL1 ','   into MFL1.
      concatenate MFL1 ','   into MFL3.
      matab1-MFL1 = MFL1.
      matab1-MFL2 = 'ZBUE,'.
      matab1-MFL3 = MFL3.
      matab1-MFL4 = ' ,'.
      matab1-MFL5 = MFL5.
      append matab1 .
      CLEAR MFL1.
      CLEAR MFL2.
      CLEAR MFL3.
      CLEAR MFL4.
      CLEAR MFL5.
    ENDFORM.
                     "evaluate
    *&      Form  GET_SOURCE
          text
    FORM GET_SOURCE.
      source-setid = setid.
      append source.
      clear source.
    ENDFORM.                    "GET_SOURCE

    Hi Rammohan,
    You cannot use OPEN DATASET to transfer data from application server to presentation server.
    You can do the following :
    <b>Do 1st point in BACKGROUND</b>
    1. Read the data file from application server into an internal table using OPEN DATASET
    <b>Do 2nd point in Foreground</b>
    2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
    You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
    Best regards,
    Prashant

  • How To Create The New VO in Standered Page?

    Hi Gurus,
    Pl z help me how to create the new Custom VO in slandered page,and how to attach that VO in custom RN in all are slandered page only.
    Regards,
    Srini

    Hi Sara,
    <i>1. Could you please tell me how to create the new webservice in XI?</i>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    <i>2. What tools we have to use to create it.?</i>
    /people/community.user/blog/2006/09/19/xi-webservice-studio--a-plain-jane-soap-tool
    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c
    Altova is also a good option
    <i>3. How to send the SOAP request to XI?</i>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    SAP Note 856597
    An Add-on
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    Regards,
    Prateek

  • How do I transfer all my data from my old windows laptop to my new MacBook

    How do I transfer all my data from my old windows laptop to my new MacBook

    Two knowledge base articles that may help are http://support.apple.com/kb/PH11393 and http://support.apple.com/kb/HT1408

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • HT201304 Visa has changed for the purchase of Apple products, i did not know how I put the new MasterCard number to finish the process of buying products Thank you

    Visa has changed for the purchase of Apple products, i did not know how I put the new MasterCard number to finish the process of buying products Thank you
    i have ibad mini
    and iphone4
    laptop sony
    can you sent for me the anser

    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • How to insert the new field to standard scheduling agreement script form.

    Hi Gurus,
    how to insert the new fields to standad sheduling agreement script form. its a need for me, i want to display the AEDAT field in scheduling agreement form ,
    The below one is my requirement,
    ex:-   Itu2019s requested the change of Scheduling Agreement printout. Itu2019s requested for this type of   document, the insertion, into the field u201CData Emissionu201D into the print, of the document last modify date instead of the document creation date. (This change will be done only for position change into the Scheduling Agreement). No change into the PO.
    Change SAPSCRIPT printout. Introduction, into the Scheduling Agreement, of last modified  
          document date (field EKPO-AEDAT).
    Thanks & Regards
    chinnu

    open TNAPR table and give the output type you need to modify.... get the print program name and check if some structure already have the date you wanted... if you have it already... then open the form in SE71 tr. and provide the strcuture name - feild in the position you want to have the date...
    se71--->
    &<str. name>-AEDAT&

  • When i update apps on my iphone they need the ID that i used when i downloaded these app and i forgot this ID and a make a new ID how i used the new one to update these apps thanks

    Hello all,
    when i update apps on my iphone they need the ID that i used when i downloaded these apps and i forgot this ID and a make a new ID
    How i used the new one to update these apps?
    thanks

    Your device can hold apps from multiple IDs, but to update them you have to swicth identities which is time consuming. If possible use only the one ID. If you need to reset the password for your old ID visit My Apple ID.
    tt2

  • How to stop the new Photos.app opening every time I put in a new device?

    How to stop the new Photos.app opening every time I put in a new device?
    It's annoying as i use bridge to do all my photo organising.

    Insert or attach a device then let Photos load. Then uncheck the box indicated:

Maybe you are looking for

  • Comment after the commit statement.

    Hi Everyone, Please do have a look at this. Commenting on COMMIT: Example The following statement commits the current transaction and associates a comment with it: COMMIT COMMENT 'In-doubt transaction Code 36, Call (415) 555-2637'; Now where can I se

  • Premiere Pro CS 5.5 quitting unexpectedly

    I recently bought a new 27in iMac and installed my existing version of CS4 on it - no problems. I then bought the 5.5 upgrade disc new. Installed fine but recurrently quits unexpedtedly. After searching, it seemed that this was probably a problem wit

  • How do I download specifically for mac 10.4.11? firefox 4 & 5 are showing incompatible.

    I have a mac (dual 2.7 GHz PPC G5, 5GB DDR SDRAM) running OS X 10.4.11. I run Firefox 3 on my other similar macs, but downloaded those some time ago. Website by default downloads Firefox 5.0.1.dmg which, after loading, (icon has the international sym

  • Where is Gmail?

    Since I upgraded to version 4 I've lost all the tab/banner typelinks I had .. especially to my GMAIL. Am I missing something, as this seems to be a dreadful upgrade?

  • 1st edition touch not charging. How do I get it to charge?

    Any help with this would be greatly appreciated.