|
-
Jun 26th, 2002, 11:06 AM
#1
Thread Starter
Junior Member
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.
-
Jul 2nd, 2002, 12:52 PM
#2
Thread Starter
Junior Member
Programming: v. An activity similar to banging one's head against a wall, but with fewer opportunities for reward.
-
Jul 2nd, 2002, 01:28 PM
#3
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|