Style cssText : Style : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  HTML   » [  Style  ]   
 



Style cssText

Please note that some example is only working under IE or Firefox.

    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.all.myP.style.cssText = "color:green; font-family:verdana; font-weight:bold; font-size:16";

</script>
<p id="myP">Text Text Text Text Text Text Text Text </p>
<input type="button" value="Click to apply the style rules" onClick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.  Style type Example
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.