|
-
Jan 4th, 2002, 03:21 PM
#1
Thread Starter
Frenzied Member
JavaScript: .style
Okay, what is the standards way of manipulating style? The following doesn't seem to work, and I don't find the documentation to support it.
Code:
<html>
<head></head>
<body>
<p id="myP">Foo.</p>
<script type="text/javascript">
var myEl = document.getElementById("myP");
myEl.style.color = blue;
</script>
</body>
</html>
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|