Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding scrollbars to this particular popup script

    How/where can I add scrollbars=1? I've tried a couple places, neither of which worked.

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

  • #2
    Rex
    Rex is offline
    New Coder
    Join Date
    May 2004
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello Ashley Quick -

    Change this variable definition:
    Code:
    zAttrib='resizable';
    to:
    Code:
    zAttrib='resizable,scrollbars=yes';
    - Rex
    Sincerely,
    Rex

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like a charm, thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •