J
John Ramsden
.... when the id 'junk' doesn't exist anywhere in the document,
instead of returning 'object'?!
I am using Javascript for a drop-down menu, slightly adapted from
one by Angus Turnbull (see http://javascript.internet.com and
http://gusnz.cjb.net, not that this is probably relevant but
it deserves a plug ;-), on Internet Explorer v6.0.2800.1106.
I need this feature of getElementById(), or an equivalent one
(using sound and standard Javascript), in order to know if an
HTML element is defined in the document, and this bug/feature
is driving me nuts: Whatever string I supply to getElementById()
the result is always 'object' whether the string exists or not
as an ID.
Cheers
John Ramsden ([email protected])
instead of returning 'object'?!
I am using Javascript for a drop-down menu, slightly adapted from
one by Angus Turnbull (see http://javascript.internet.com and
http://gusnz.cjb.net, not that this is probably relevant but
it deserves a plug ;-), on Internet Explorer v6.0.2800.1106.
I need this feature of getElementById(), or an equivalent one
(using sound and standard Javascript), in order to know if an
HTML element is defined in the document, and this bug/feature
is driving me nuts: Whatever string I supply to getElementById()
the result is always 'object' whether the string exists or not
as an ID.
Cheers
John Ramsden ([email protected])