[thelist] JavaScript focus & getElementByID

Martyn Haigh martyn.haigh at virgincosmetics.com
Thu Jan 16 04:47:01 CST 2003


Your help is going a long way - but yet again I'm stuck )c:

How would I go about accessing this element?

	<tr id="HearSec" name="HearSec">

(Have I included enough of the HTML here?)

I've tried these - but they don't work :

	document.elements['HearSec'].display = 'none';
	document.HearSec.display = 'none';


is the elements array only built up for the forms?

In which case - is there just a normal elements array built up of elements
not in forms?

Or should I stick with my old method of using a API to grab these out of
form elements?

Thank you again!

Martyn Haigh

Site Developer
The Virgin Cosmetics Company
City Fields, Chichester, West Sussex PO20 2FP
tel: 01243 622282




DISCLAIMER: The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this email by
anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it, is prohibited and may be unlawful.





More information about the thelist mailing list