Connecting Tech Pros Worldwide Forums | Help | Site Map

full-screen popups

Plum Bob
Guest
 
Posts: n/a
#1: Oct 24 '07
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



GArlington
Guest
 
Posts: n/a
#2: Oct 24 '07

re: full-screen popups


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);
}

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#3: Oct 24 '07

re: full-screen popups


Plum Bob wrote:
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>
http://validator.w3.org/
Quote:
My client wants his popups opened to obscure the parent page (behind),
But I don't, and I'm not alone with this opinion. And lest you forget,
there are tabbed browsing, popup blockers, and disabled or absent script
support. Four get it. [psf 4.13]


PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Closed Thread