...

View Full Version : adding scrollbars to this particular popup script



AshleyQuick
05-26-2004, 04:41 PM
How/where can I add scrollbars=1? I've tried a couple places, neither of which worked.


function openpopup()
{
var popurl="popup.html"

zWinWide=500;
zWinHigh=600;

zAttrib='resizable';

zScrWide=screen.width;
zScrHigh=screen.height;

zLeftPos=(zScrWide/2)-(zWinWide/2);
zTopPos=(zScrHigh/2)-(zWinHigh/2);

winpops=window.open(popurl, '', 'width=' + zWinWide + ',height=' + zWinHigh + ',left=' + zLeftPos + ',top=' + zTopPos + ','+zAttrib,+scrollbars=yes);
}

Rex
05-26-2004, 04:55 PM
Hello Ashley Quick -

Change this variable definition:

zAttrib='resizable';
to:

zAttrib='resizable,scrollbars=yes';

- Rex

AshleyQuick
05-26-2004, 05:19 PM
Like a charm, thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum