Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

to focus main window

Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friends,
i solved my backbutton and history problem by opening the new window without having any toolbars. We are opening new window if user logged correctly.
If user enters the correct username and password ,new window will opens .we check this by getting the location of the path. we get one location if he enters correct username and script if that is the path,then we will open in new window.
if username and pasword is not correct , so by checking the window.location,we will not open new window.
Here my problem is, when we logins correctly, new window is opening. but focus is going to parent window only.that is child window is minimized
is there any method or function or property to set the focus = true or highlights the child window.
so please tell me how i can overcome this problem

Thanks in advance
Posts: 15385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope you love dealing with cutomers and pop up blockers, plus there are settings that cause pop up blockers to hold onto toolbars.

but to answer your question:

window.focus() is what you need to add in the child window.

pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic