<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Javascript] auto resizing a window</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2>Phil,</FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff size=2>Are 
you on ALL of the listservs? It is my great fortune for you to be on them all, 
;-). </FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff size=2>I'm 
even newer to javascript than to vbscript, asp, etc, so please forgive my 
questions. </FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff size=2>Will 
this code work if the initial page has no frames? </FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff size=2>Here 
is the entire page that I'm trying to make work. I should have included it to 
begin with. It's not like everyone doesn't constantly say 
to!</FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2>&lt;Begin Code&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2>&lt;html&gt;&lt;link rel="STYLESHEET" type="text/css" 
href="/mycss.css"&gt;<BR>&lt;script 
language="JavaScript"&gt;<BR>&lt;!--<BR>function 
MM_openBrWindow(theURL,winName,features) { //v2.0<BR>&nbsp; 
window.open(theURL,winName,features);<BR>}<BR>//--&gt;<BR>&lt;!-- START 
<BR>)<BR>if (top.frames.length!=0) <BR>top.location=self.document.location; 
<BR>self.moveTo(0,0) <BR>self.resizeTo(675,600) <BR>)<BR>// END --&gt; 
<BR>&lt;/script&gt; </FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2>&lt;p&gt;&amp;nbsp;&lt;/p&gt;<BR>&lt;p&gt;&amp;nbsp;&lt;/p&gt;<BR>&lt;p&gt;&amp;nbsp;&lt;/p&gt;<BR>&lt;p&gt;&amp;nbsp;&lt;/p&gt;<BR>&lt;table 
width="500" border="0" align="center"&gt;<BR>&nbsp; 
&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;p align="center"&gt;&lt;font size="4"&gt;Welcome to 
TheAllThing&lt;/font&gt;&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p 
align="center"&gt;&lt;font size="4"&gt;TheAllThing is best viewed at 1024X768 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resolution on an 
Internet Explorer&lt;/font&gt;&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p 
align="center"&gt;&lt;font size="4"&gt;&amp;lt;&lt;a href="#" 
onMouseOver="MM_openBrWindow('default1.htm','','scrollbars=yes,width=675,height=600')"&gt;Enter&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;<BR>&lt;/td&gt;<BR>&nbsp; 
&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;p&gt;&amp;nbsp;&lt;/p&gt;<BR>&lt;/html&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=371055322-05112001><FONT face=Arial color=#0000ff 
size=2>&lt;/End Code&gt;</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Phil Winstanley 
  [mailto:phil.winstanley@creations.co.uk]<BR><B>Sent:</B> Monday, November 05, 
  2001 5:20 PM<BR><B>To:</B> 'javascript@LaTech.edu'<BR><B>Subject:</B> RE: 
  [Javascript] auto resizing a window<BR><BR></FONT></DIV>
  <P><FONT size=2>Modify this one a little.</FONT> </P>
  <P><FONT size=2>&lt;SCRIPT language="JavaScript"&gt;</FONT> <BR><FONT 
  size=2>&lt;!-- START</FONT> <BR><FONT size=2>if (top.frames.length!=0)</FONT> 
  <BR><FONT size=2>top.location=self.document.location;</FONT> <BR><FONT 
  size=2>self.moveTo(0,0)</FONT> <BR><FONT 
  size=2>self.resizeTo(screen.availWidth,screen.availHeight)</FONT> <BR><FONT 
  size=2>// END --&gt;</FONT> <BR><FONT size=2>&lt;/script&gt;</FONT> </P>
  <P><FONT size=2>Plip.</FONT> <BR><FONT 
  size=2>_____________________________</FONT> <BR><FONT size=2>Company 
  Idiot</FONT> <BR><FONT size=2>Creations Group Limited</FONT> <BR><FONT 
  size=2>_____________________________</FONT> <BR><FONT size=2>&nbsp;</FONT> 
  </P><BR>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
  Kelly, Kyle [<A 
  href="mailto:Kyle@admin.usf.edu">mailto:Kyle@admin.usf.edu</A>] 
  </FONT><BR><FONT size=2>Sent: 05 November 2001 22:17</FONT> <BR><FONT 
  size=2>To: 'javascript@LaTech.edu'</FONT> <BR><FONT size=2>Subject: 
  [Javascript] auto resizing a window</FONT> </P><BR>
  <P><FONT size=2>Greetings,</FONT> </P>
  <P><FONT size=2>Is there a way to automatically resize a window to certain 
  parameters, say 675x600? In other words, when a user hits my page, I want the 
  page to automatically resize itself to 675x600. What I'm doing now is to have 
  the user click on an &lt;ENTER&gt; link that opens another page that is 
  675x600. This however is a pain in the behind. </FONT></P>
  <P><FONT size=2>Can this be done with out having the user hit the 
  &lt;ENTER&gt; link, and opening another window? I'd like only one window to 
  open, as constant additional windows annoy me, and undoubtedly others as well. 
  </FONT></P>
  <P><FONT size=2>Thanks in advance for any suggestions. </FONT></P>
  <P><FONT size=2>Thank You,</FONT> </P>
  <P><FONT size=2>Kyle</FONT> <BR><FONT 
  size=2>_______________________________________________</FONT> <BR><FONT 
  size=2>Javascript mailing list</FONT> <BR><FONT size=2>Javascript@LaTech.edu 
  <A href="http://www.LaTech.edu/mailman/listinfo/javascript" 
  target=_blank>http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT> 
</P></BLOCKQUOTE></BODY></HTML>