Andrew Poulos wrote:
> I'm working on updating some pages for a client that include Flash. The
> pages have both OBJECT and EMBED tags. The ID for the OBJECT tag is
> mirrored by the EMBED's tag NAME attribute.
>
> quirksmode.org reckons that getElementsByName gives 'incorrect' results
> for 4 of the 6 browsers that was tested. Is there a reliable way to
> refer to the EMBED by its NAME?
DOM Level 0
document.embeds['embedName']
should do better that getElementsByTagName.
--
Martin Honnen
http://JavaScript.FAQTs.com/