[thelist] IE Visibility Question

James Aylard evolt at pixelwright.com
Thu May 9 10:20:00 CDT 2002


Josh,

> <p name="clipboard">
> ... but when I do this ...
> document.all.clipboard.style.visibility = "hidden"
>
> I get an error that "document.all.clipboard.style is null or is not an
> object."  Obviously, this is an IE script.  Does anyone know why the
second
> method does not work?

    A couple of problems here: the p element [1] has no name attribute. You
must use the id attribute for what you are trying to accomplish. Also, p
elements must not contain block elements, and so should not be used as a
container for a form [2].

1. http://www.w3.org/TR/html4/struct/text.html#edef-P
2. http://www.w3.org/TR/html4/interact/forms.html#edef-FORM

James Aylard




More information about the thelist mailing list