[thelist] IE Visibility Question

Joshua Olson joshua at waetech.com
Thu May 9 10:08:00 CDT 2002


----- Original Message -----
From: "Feingold Josh S" <Josh.S.Feingold at irs.gov>
Sent: Thursday, May 09, 2002 10:57 AM
Subject: [thelist] IE Visibility Question


> <p name="clipboard">
> <form name="cutnpaste">
> <textarea name="info" rows=5 cols=50"></textarea>
> </form>
> </p>
>
> I want to make the form disappear when I click on a button (button is
> outside of the above paragraph).
>
> Everything works ok when I do this ...
> document.all.cutnpaste.style.visibility = "hidden"
>
> ... 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?

Josh,

1.  Definitely use a div instead of a p.
2.  Either way, make sure you use the id attribute, not the name attribute.
3.  It should then work like a charm.

-joshua





More information about the thelist mailing list