JavaScript DHTML/Node Operation/className

Материал из Web эксперт
Перейти к: навигация, поиск

"className" Example

   <source lang="html4strict">
   

<html> <head> <script language="JavaScript">

   function function1() {
       document.getElementById("myP").className = "myC"
   }

</script> <style> .myC {

   font-family:verdana, arial; 
   font-weight:bold; 
   font-size:16px; 

} </style> </head> <body>

Render this text using the myC class

</body> </html>


     </source>