Can anyone help point me in the right direction – I have the following in a function:
document.form1.textbox1.style.display = ‘none’;
which works fine.
But I’m trying to find a list of all the possible ‘elements'(?) that could come after style, e.g. ‘.display=’, ‘.length=’ etc, but I don’t know the proper name/terms so the searches i’m doing are not returning what I want.
Any ideas? Thanks in advance! 🙂
leddy
See the CSS spec. Convert hyphenated-names to camelCase (e.g. backgroundColor not background-color).
Also see the DOM spec.
That said, in most cases it is usually better to modify the
element.className(and have a pre–written, external style sheet) instead of modifying theelement.style.*