Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OPENING A MAXIMISED WINDOW THROUGH JAVA SCRIPT

 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the script is not there ( :O
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot Al
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic