Click here to Skip to main content
13,146,739 members (84,803 online)
Rate this:
Please Sign up or sign in to vote.
See more:

wondering if people can help me or if my way of thinking wont work. I am not a coder so i dont get to involved in writing, just learn as i go. Anyway

i have webpage 1 that refreshes every 5 mins. This page launches a popup.
 <script type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0,winName,features);
<body  önload="MM_openBrWindow('call_notice.html','CallWaiting','width=200,height=200')">"
No if this page is currently in the background the popup also appears in the background. i need this page to come to the foreground to notify the user that the pages has refreshed. Popup has the following code: 
<body onblur="self.focus()"  önload="self.focus()">
<p align="center" class="style1">You have a call. </p>
<p align="center" class="style1">Please close this window to continue.</p>
<p align="center" class="style1"> </p>
<form method="post">
  <div align="center">
    <input type="button" value="Continue" 

I have tried set.focus seen some setforegroundwindow, but cant it to work. seen z-order but that doesnt make sens to me.

any one got any ideas on how i can do it? or has something that monitors windows titles and executes something?

any help would be great. i dont write from scratch but take bits here and there just to let you now what type of person you are dealing with.
Posted 31-May-11 14:20pm
Updated 31-May-11 15:57pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can use to do that
by this u can do that
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

where do i put this? do i put it in the page that is launching the popup or in the popup pages itself?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 1 Jun 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100