<p>I want to do this:</p>

<pre><code>e.className = t;
</code></pre>

<p>Where t is the name of a style I have defined in a stylesheet.</p>

Yes, that works (with the class name as a string, as jonah mentioned). Also, you can set style attributes directly on an object, using the
DOM Level 2 Style
interface. e.g.,
```
```
button.style.fontFamily = "Verdana, Arial, sans-serif";
```
```
where
```
button
```
is (presumably) a button object. :-)