Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for window resize

Status
Not open for further replies.

nolimitz

Technical User
May 26, 2002
3
US
I'm a little new to java so bare with me here. I need a quick script for a window resize that only shows the border. I've been using the one below but it doesn't do what I need. I know you need to add
toolbar=no,menubar=no,location=no,scrollbars=no,resize=no
in somewhere but not sure how. Please help



<script language=&quot;JavaScript&quot;>
function mov_it()
{// version 1.00
self.moveTo(0,0);//specify the pixel width, pixel height here
self.resizeTo(600,400);//specify the pixel width, pixel height here


}
//-->
</script>
</head>


<body>

<body onload=&quot;mov_it();&quot;>
 
<SCRIPT LANGUAGE=&quot;Javascript&quot;>
function openWindow()
{
window.open(&quot;logo.html&quot;,&quot;Alert&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=no,resizable=no,&quot; + &quot;width=715,height=115,screenX=149,screenY=311&quot;)
}
</SCRIPT><BODY onLoad=&quot;openWindow()&quot;

And add anything else you want to add like self.moveto etc.

Hope this helps!
colorado.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top