Solved

Bring Window to Front

Posted on 1998-04-16
1
590 Views
Last Modified: 2008-02-01
I am using a small window to control another window, I can force a change of page into the main window but I then need to bring this to the front is this possible.

I think that it is something to do with focus but I cannot get this to work.

Many Thanks.

RichardH
0
Comment
Question by:RICHARDH
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 30 total points
Comment Utility
I answered this in the other message...

msg = window.open(...........)
if (msg.focus) msg.focus();

alternatively put
if (self.focus) self.focus();
else alert('FOCUS!');
in any script in the html you load in the new window
The alert is for MSIE 3.x

Michel
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now