title: Alternative to 'className' in JavaScript for IE Mobile?
body: <p>I'm working on a mobile web app that needs to work in IE Mobile. I've narrowed down a JavaScript error I'm getting to IE Mobile not supporting the '<code>className</code>' property (IE4 engine...). I'm trying to find an alternative that works across all browsers with minimal code changes (I already have a few libraries that use '<code>className</code>').</p>
  
  <p>The easiest approach I could think of would be to modify IE's element prototype to include className (if it doesn't have it), the problem is that I don't know what the alternative to '<code>className</code>' is in IE Mobile.</p>
  
  <p>I've tried this:  </p>
  
  <pre><code>element.className = element.class;
  </code></pre>
  
  <p>Which obviously doesn't work because <code>class</code> is a keyword in JavaScript and my JS compressor doesn't like it, and it's probably not valid anyway.</p>
  
  <p>Other than using 'setAttribute()' everywhere I need to modify an element's class, is there any property I can use that is the equivalent to className?</p>