Results 1 to 3 of 3

Thread: Window question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    22

    Question Window question

    I am trying to open up a pdf link in a new window but have it be maximized. Also is it possible to default the zoom to 100% on load?

    Thanks
    Last edited by Hobbes; Jun 26th, 2002 at 12:48 PM.
    Programming: v. An activity similar to banging one's head against a wall, but with fewer opportunities for reward.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    22
    Anyone?
    Programming: v. An activity similar to banging one's head against a wall, but with fewer opportunities for reward.

  3. #3
    Lively Member
    Join Date
    Jul 2001
    Location
    USA
    Posts
    95
    try this:

    Code:
    <html>
     <head>
      <script>
       function PopUp(){
        var ScreenWidth=window.screen.width;
        var ScreenHeight=window.screen.height;
        var movefromedge=0;
        placementx=(ScreenWidth/2)-((ScreenWidth)/2);
        placementy=(ScreenHeight/2)-((ScreenHeight)/2);
        var PopUpUrl="yourpage here"
        WinPop=window.open(PopUpUrl,"","width="+ScreenWidth+",height="+ScreenHeight+",toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
       }
      </script>
     </head>
     <body>
      <a href="javascript:PopUp()">Link</a>
     </body>
    </html>

Posting Permissions

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



Click Here to Expand Forum to Full Width