On 24 Oct, 11:51, "Plum Bob" <b...@pluc.comwrote:
Quote:
Hi - I use a simple JS function to open popups on my site:
>
<script language="javascript">
<!--
var pathname;
function openit(pathname) {
newWindow = window.open(pathname, 'wndow1',
'resizable=yes,scrollbars=yes');
}
// -->
</script>
>
My client wants his popups opened to obscure the parent page (behind), ie
the popups open to the size of the parent, or to a "full-screen" size
(maximized).
>
I searched the 'net and found this attribute which I added after scrollbars
fullscreen=yes
but it seemed to make the popup disappear completely (I'm on a 2 monitor
setup - not sure if that messes things up).
>
Is there a simple snippet I could ad to my "openit" function that would size
my popup accordingly?
>
thanks for any help with this
>
Bob
function mypopup(hRef, )
{
var parentW = window.outerWidth;
var parentH = window.outerHeight;
mywindow = window.open (hRef,
"mywindow","location=1,status=1,scrollbars=1,
width=" + parentW + ",height=" + parentH);
mywindow.moveTo(0,0);
}