>> it seems that document.layers is part of netscape 4
Amongst some others, but generally yes, and probably not worth worrying
about.
>> and document.all is for IE 4/5.
The all collection is supported by all IE versions after 4.0, as well as
other user agents. However, for the purposes of obtaining a single
element reference, its use should be restricted to IE 4 only. The
document.getElementById method is preferable.
[ashkann:]
>>> <style>
[snip]
>>> <script language="javascript>
The type attribute is required by both elements:
<style type="text/css">
<script type="text/javascript">
[snip]
> if( true ) {
> function myFunc( ) {
[quoted text clipped - 5 lines]
> }
> }
[snip]
> It's the same as saying:
> function myFunc( ) {
[quoted text clipped - 4 lines]
> thing2();
> }
No, it's not. Depending on your point of view, at best the former should
throw a syntax error, and at worst it will act like the latter.
[snip]
Mike

Signature
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.