wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT" Watch "OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT" New topic
Author

OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Hi,
can anybody let me know how to open a maximised windoe thorugh javascript.Because if i give height and width then its not exact.I just want to open the window in normal maximised form.
Please help
Thanx
Mou
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Goto the site below and click the maximize buttons and generate the code. Any questions just yell!
http://www.a1ien51.8k.com/scripts/popupwingenV2.htm
mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
the script is not there ( :O
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is there, when you build it.......
<html>
<head>
<title>PopUpScript</title>
<script>
function PopUp(){
var ScreenWidth=window.screen.width;
var ScreenHeight=window.screen.height;
var movefromedge=0;
placementx=movefromedge;
placementy=movefromedge;
var PopUpUrl="http://www.A1ien51.8k.com"
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()">Type One</a>
<BR>
<p onclick="PopUp()">Type Two</p>
</body>
</html>
mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Thanx a lot Al
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT