Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

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
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<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" 
 önclick="window.close()">
  </div>
</form>


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
Updated 31-May-11 15:57pm
v2

you can use to do that
window.showModalDialog(call_notice.html);
by this u can do that
 
Share this answer
 
where do i put this? do i put it in the page that is launching the popup or in the popup pages itself?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900