Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on Javascript alert method

Status
Not open for further replies.

VZAKUMAR

Programmer
Oct 5, 2001
2
US
Hi,

In one of web application I have a screen where I am displaying an alert message in a specific condition using the alert method.

<script type="Javascript">
for
{
....do some processing...
alert("Click OK to continue");
.....
}
</script>

Now if I switch from my web application to other windows application like Microsoft outlook, UltraEdit etc, I wanted the alert popup to appear on top of the current active application (for ex: MS Outlook). Is this possible?

Javascript gurus!!! SOMEONE HELP ME PLEASE!!!

Thanks in Advance,
Kumar
 
>[tt]<script type="Javascript">[/tt]
[tt]<script type="text/Javascript">[/tt]
or
[tt]<script language="Javascript">[/tt]

>...I wanted the alert popup to appear on top of the current active application (for ex: MS Outlook). Is this possible?

That for brower on a web page, I guess not generally and across os. It depends on the os, in particular, from xp on say which has a unforgiving view of letting other application "steeling" the focus of the current active window, unless you customize the registry setting. (Imagine when you are typing busily and suddenly the focus is being stolen by some other input window such as an alert or a connectoid...)

Maybe some other members know better and have different observations...
 
Simple answer, for cross-browser scripting: NO.

The alert window is part of the browser. If another app is in front of the browser window, it will also be in front of the alert box.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top