471,620 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,620 software developers and data experts.

document layers question

Hi.

Can anyone help me please. If the syntax for IE is:

document.getElementById(layerID)

What if I want to use layers ?

document.layers ?????????

Can someone help me out please.

Thanks

Chris
Jul 20 '05 #1
1 1690
"Chris Leonard" <c.*************@btinternet.com> writes:
Can anyone help me please. If the syntax for IE is:

document.getElementById(layerID)
That is not just IE, it is in the W3C DOM Core specification.

It is the way to go, unless you need to support ancient browsers.
What if I want to use layers ? document.layers ?????????


Then you need to use Netscape 4 or earlier.

These are the only browsers to support the proprietary Netscape tag
<layer>, and the collection "document.layers" [1].

Some people still use the word "layer" about absolutely positioned
div elements. I don't recommend that, since it can be confuzed with
real <layer>-tag layers.
/L
[1] OmniWeb is reported to have a property called document.layers, but
it doesn't work.
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by David List | last post: by
12 posts views Thread by Kepler | last post: by
4 posts views Thread by ashkaan57 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.