Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Bring Window to Front

Posted on 1998-04-16
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.

Question by:RICHARDH
1 Comment
LVL 75

Accepted Solution

Michel Plungjan earned 30 total points
ID: 1279273
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


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to combine and minify CSS and JS files 5 16
Html CheckBox obtain Its Value 5 27
Load data upon clicking a button 8 34
forgetful about js objects 8 46
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

839 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