<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp; The major advantage I can see, aside from more closely 
following the IE object model, is that if you happen to have a variable or other 
object named "lala", you'll still end up with the right reference by using 
document.all.</FONT></SPAN></DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff size=2>Just 
two more cents on the pile...</FONT></SPAN></DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2>Peter</FONT></SPAN></DIV>
<DIV><SPAN class=489071518-22082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  javascript-bounces@LaTech.edu [mailto:javascript-bounces@LaTech.edu] <B>On 
  Behalf Of </B>Dan Costea<BR><B>Sent:</B> Friday, August 22, 2003 11:32 
  AM<BR><B>To:</B> [JavaScript List]<BR><B>Subject:</B> [Javascript] 
  difference<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Hi,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I work with IE; I have an HTML 
  object:</FONT></DIV>
  <DIV><FONT face=Arial size=2>&lt;input id="lala"/&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>What is the difference between referencing it in 
  js code with: </FONT></DIV>
  <DIV><FONT face=Arial size=2>var myVal = 
  document.all['lala'].value;</FONT></DIV>
  <DIV><FONT face=Arial size=2>or just </FONT></DIV>
  <DIV><FONT face=Arial size=2>var myVal = lala.value;</FONT></DIV>
  <DIV><FONT face=Arial size=2>?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Dan Costea.</FONT></DIV></BLOCKQUOTE></BODY></HTML>