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
Printable View
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
Anyone?
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>