Possible Duplicate:
How to change/remove CSS classes definitions at runtime?
<!DOCTYPE html>
<meta charset="utf-8">
<title>An HTML5 Document</title>
<style>
body {
background: red;
}
</style>
How can I get CSS codes in the style
element via JS? Thank you.