[Javascript] Can you change a style at runtime?

Alexander Yap alex.yap at str.com.au
Wed Sep 11 19:27:04 CDT 2002


Hi,

document.getElementById("mydiv").className="theNewClassName";

-- 
Alexander Yap
Melbourne, Australia



On Wed, 11 Sep 2002 21:19, you wrote:
> Hi all.
>
> I'm looking for a way to dynamically change a div's class
> name that will work in both IE6 and NN6. Does anyone
> have any ideas? Thanks much.
>
>
> Brian M.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list