JavaScript DHTML/Node Operation/createStyleSheet

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

"createStyleSheet()" Example

   <source lang="html4strict">
   

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

   function function1() {
       document.createStyleSheet("yourstyle.css")
   }

</script> Hello world!
<input type="button" value="Create style sheet" onclick="function1();"> </body> </html>


     </source>