473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Javascript to Push IE Window to front

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.

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?
Jul 23 '05 #1
1 6449
Ozzy wrote:
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
You have tried putting an _attribute with a value_ in the _start tag_ of
the BODY _element_.
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.


`window.focus' is not a method call, `window.focus()' is. Furthermore,
window.focus() is a host object's method. To avoid script errors, you
should test if that method is defined before you call it:

onload="if (window.focus) window.focus();"

See <http://pointedears.de/scripts/test/whatami>.
HTH

PointedEars
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ÂÑTØÑ | last post by:
Hi, I was looking for a list of commands, but I can't find it. It's about commands you can type in the Internet Explorer adress bar, to get some information about a website. For instance...
4
by: D Newsham | last post by:
Hi, This javascript creates a table that has a header and side column that do not move while scrolling through the table. I need to convert this to vb script. Can anybody help, or do you have...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
10
by: the DtTvB | last post by:
I heard it is not the same. The lastest version of JavaScript is 1.6 while lastest version of JScript is 8.0 I also heard a little bit about ECMAScript, but I still don't know what's the...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
1
by: bsprogs | last post by:
I am currnetly programming a file hosting website in PHP and I am slowly integrating AJAX into the website. Here is my problem: The user uploads the file. The server processes the file and...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.