Google Answers Logo
View Question
 
Q: Javascript window.focus() in front of other applications ( No Answer,   2 Comments )
Question  
Subject: Javascript window.focus() in front of other applications
Category: Computers > Internet
Asked by: cozimek-ga
List Price: $2.00
Posted: 21 Jun 2004 11:10 PDT
Expires: 22 Jun 2004 22:31 PDT
Question ID: 364088
We've got a CDROM with a Flash Projector movie on it.  Within the
Flash projector (which is already burned on CDROM...can't change it),
we have the typical getURL fuctions to open a Web browser and browse a
link.  This works fine when there isn't a browser window already open:
the link opens in the FOREGROUND, infront of our Flash Projector.

However, now we've got a problem since after we've burned the CDROM,
if a user has a Web browser open already, and clicks a link within the
Projector, the new window does not come to the front...it simply stays
behind the full-screen projector.

So, we've tried putting an onLoad="window.focus;" tag in our BODY tag
on the web pages our Project is linking to, and that actually worked
at first (the pages are ASP Classic).  However, they're not working
anymore.  We're really not sure why.

Here's a link to one such page: 
http://www.21stcenturyskills.org/resourcedb/default.asp

When we load that page, quickly flip to another via ALT-TAB, the first
page DOES come forward.  However, it doesn't seem to come infront of
another application.  So, if we hit reload for the above page, then
quiclkly ALT-TAB to MS Word, the page will not force itself infront of
Word.

Any suggestions?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Javascript window.focus() in front of other applications
From: lucos-ga on 21 Jun 2004 14:02 PDT
 
Don't know the answer to your problem, but I have noticed within this page...

http://www.21stcenturyskills.org/resourcedb/search.aspx

that the pop down menu at the top falls behind the search forms.  To
resolve this use div tags <div style="z-index:1;">  and change the
zindex of the pop down menu to a higher value than the search form so
it falls in front.
Subject: Re: Javascript window.focus() in front of other applications
From: politicalguru-ga on 22 Jun 2004 04:24 PDT
 
Thank you for your question.  
 
However, I believe that to answer it well, your question will require
more time and effort than the average amount of time and effort
associated with this price. Here is a link to guidelines about pricing
your question, in the pricing guide:
https://answers.google.com/answers/pricing.html

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy