title: How to access class name by javaScript
body: <p>I  want to access class"pdocCover" for set width and height of body by javaScript . How should I do?.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- Generated by PubliForge, $Date: 2012/02/03 12:17:54 $ --&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
  &lt;meta http-equiv="Content-Language" content="en"/&gt;
  &lt;title&gt;Couverture&lt;/title&gt;
  &lt;link rel="StyleSheet" href="Css/reset.css" type="text/css"/&gt;
  &lt;link rel="StyleSheet" href="Css/publidoc.css" type="text/css"/&gt;
  &lt;link rel="StyleSheet" href="Css/main.css" type="text/css"/&gt;
  &lt;/head&gt;
  &lt;body class="pdocCover"&gt;
  &lt;div&gt;
    &lt;img src="Images/9782919504060.png" alt="Couverture"/&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>