Popup Window Location

  • Thread starter Thread starter Paul Ross
  • Start date Start date
P

Paul Ross

Is there a way to open a popup window with a specific location relative to
the parent window. For example, centered on the parent window, or near a
specific control on the parent window.

It seems like there should be a way to do this.

Paul
"It was I who allowed the alliance to learn the location of the shield
generator. It is quite safe from your pitiful band."
 
Javascript can do it ...

function assist(npage) {
w = 760;
h = 700;
l = (screen.availWidth-10 - w) / 2;
t = (screen.availHeight-20 - h) / 2;

flyout=window.open(npage,'assist','resizable=yes, scrollbars=yes,
width=' + w + ', height=' + h + ',top=' + t + ',left=' + l);
flyout.focus();
}

you can put this in a clientscriptblock from the codebehind if necessary
.....
 
Back
Top