Single popup, bring to front rather than multiple instances

Depends what you mean by 'popup'. Presumably you mean with javascript. The answer is yes, simply reference the window and focus() it.

Create a function that opens the new window, first checking whether the window already exists and you are able to call focus(). If the window's already open, focus it, else open the new window. Something like the following should work:

Code:
function openWindow() {
  if (typeof(newWindow) !== 'undefined' && window.focus) {
    newWindow.focus();
  } else {
    newWindow = window.open(whatever);
  }
}
 
I have this AS at the moment:

Code:
var nBtnQty:Number = 3;
// Set the button event Methods below.
btn1.onRelease = function():Void  {
   newPopUpRandomId("ss/info.html", 550, 719, fTopLeftRandom(0, 64), fTopLeftRandom(0, 64), "No", "No", "No", "No", "No", "No");
};   
   #include "pageFunctions.as"

It's a Flash page linking to another Flash landing page with links out etc.
 
Back
Top Bottom