<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Yes, that would be my preferred&nbsp;way also.<BR>
&nbsp;<BR>
Although I think this is the same bull&nbsp;differently packed&nbsp;and "borrowed" from first release of IE 4.0.<BR>
This is <FONT color=#000000>a call of element </FONT>extracted from document members, the same mistake IE4.0 did.<BR>
&nbsp;<BR>
The argument:<BR>
Now why do I like your approach more, than:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT>document.getElementById</FONT>("MyBlock").style.padding&nbsp;=&nbsp;...;<BR>
of course, only if: <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT>var</FONT>&nbsp;oDiv&nbsp;=&nbsp;document.getElementById("MyBlock");<BR>
is&nbsp;declared as <FONT color=#000000>global</FONT> variable. Otherwise there is no benefit!<BR>
&nbsp;<BR>
That's because every time the script calls the object, the browser has to iterate through all document objects once again.<BR>
But this inefficiency/mistake was immediately corrected before the end of 1997.[with <FONT>IE4.01 patch</FONT>].<BR>
Even if you could, -back then, also declare:<BR>
<FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT>var</FONT> oDiv=document.all</FONT><FONT>.<FONT>MyBlock;</FONT></FONT><BR>
to later use:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oDiv.style.something...;<BR>
compensating for document collection call overhead. <BR>
But seeing that this is&nbsp;now inefficient for coders, they've immediately introduced<BR>
the <FONT color=#000000>direct object reference</FONT>. <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyBlock.style.something...;<BR>
Something W3C never did! -I wonder why?!<BR>
&nbsp;<BR>
<FONT><FONT color=#ffffff><FONT>For your eyes only:</FONT></FONT></FONT><BR>
<FONT color=#ffffff>But no need to wonder, because as&nbsp;"object&nbsp;call through collection"&nbsp;, -the direct object reference&nbsp;might still be, at least </FONT><BR>
<FONT color=#ffffff>an "Intellectual Property" of Microsoft. But this one is not that easy to modify so W3C left it out until at least next year.</FONT><BR>
<FONT color=#ffffff>Because (I'm not very sure about this) but Intellectual property rights expire&nbsp;in a decade.</FONT><BR>
<FONT color=#ffffff></FONT>&nbsp;<BR>
<FONT color=#ffffff>"object reference" method&nbsp; in W3C standard, yes, that would be the day.</FONT><BR>
<FONT color=#99ccff></FONT>&nbsp;<BR>
Regards.<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Troy&nbsp;III<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressive&nbsp;art&nbsp;enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR>

<HR id=stopSpelling>
<BR>
&gt; Sorry&nbsp;for&nbsp;not&nbsp;answering&nbsp;your&nbsp;question&nbsp;as&nbsp;stated,&nbsp;but&nbsp;I&nbsp;like&nbsp;the&nbsp;third&nbsp;option:<BR>&gt; <BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;oDiv&nbsp;=&nbsp;document.getElementById("MyBlock");<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oDiv.style.padding&nbsp;=&nbsp;...<BR>&gt; <BR>&gt; Paul&nbsp;&nbsp;<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Javascript&nbsp;mailing&nbsp;list<BR>&gt; Javascript@LaTech.edu<BR>&gt; https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Be one of the first to try Windows Live Mail. <a href='http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d' target='_new'>Windows Live Mail.</a></body>
</html>